in reply to Re: RegEx on 4MB file consumes of 2GB of ram before windows shuts it down (Memory Leak in 5.8.2)
in thread RegEx on 4MB file consumes of 2GB of ram before windows shuts it down (Memory Leak in 5.8.2)
:)
I could, however, slurp a line at a time until the line was ^\s*Sound$ then make sure the next line was correct, check if the name matched (and steal the white space). Finally I'd check the next line and either add a priority line or update it. I could write each line right back out to the output file as I go.
That's a much better approach and much less prone to bugs (and it would work around the reg-ex memory leak in 5.8.2).
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: RegEx on 4MB file consumes of 2GB of ram before windows shuts it down (Memory Leak in 5.8.2)
by tachyon (Chancellor) on Apr 13, 2004 at 08:23 UTC |