in reply to Re^4: 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 ?
This can't work faster , like explained in the linked post you have to read a chunk at once.
And please search for use Benchmark and/or use Time::HiRes to learn how to measure performance. (I'm mobile so no code sorry )
Btw I have my doubts what kind of grep and wc you might be using on Win.
ah indeed GNU grep is using regex by default for patterns not fixed strings...
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|