http://www.perlmonks.org?node_id=1160674


in reply to Re^6: 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 ?

It make a big difference !!!

Regarding the other performance i get from other language, i was expected something between 50 and 100 s. My hard drive is a 2.5 laptop disk with 5200 tpm. The ultra optimized grep.exe give me a very good result of 10s, it's the best time i can get.

But before i was going to check huge volumes, perl was fast. For the 195 mb file, i got 0,61s for grep, 2,25 for java/C#, 3,36 for php, 7 for C++ and 2,47 for perl.