in reply to How to optimize a regex on a large file read line by line ?
Anyway a sliding window always reading large chunks and adapting the regex to operate on multiple lines could speed up things a little.
Edit: see Re: Memory Leak when slurping files in a loop (sliding window explained)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|