in reply to Re^2: How to optimize a regex on a large file read line by line ?
in thread How to optimize a regex on a large file read line by line ?
I suppose grep does the same like I suggested before, reading large chunks into memory and trying to match multiple lines at once.
Another option is to fork into four child's each processing a quarter to use the full power of your machine.
And btw using lexical variables declared with my should help a little too.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to optimize a regex on a large file read line by line ?
by John FENDER (Acolyte) on Apr 16, 2016 at 16:16 UTC | |
by LanX (Saint) on Apr 16, 2016 at 19:33 UTC | |
by LanX (Saint) on Apr 16, 2016 at 20:51 UTC | |
by LanX (Saint) on Apr 16, 2016 at 16:52 UTC | |
by John FENDER (Acolyte) on Apr 16, 2016 at 18:05 UTC | |
|
Re^4: How to optimize a regex on a large file read line by line ?
by John FENDER (Acolyte) on Apr 16, 2016 at 18:25 UTC |