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 ?

Grep and egrep run slow on the Mac and do not know why.

wc -l: 2.162 seconds grep -c: 45.316 seconds

Replies are listed 'Best First'.
Re^4: How to optimize a regex on a large file read line by line ?
by LanX (Saint) on Apr 21, 2016 at 17:05 UTC
    > Grep and egrep run slow on the Mac and do not know why.

    you have optimized the chunk-size in your script manually, probably those tools where compiled with hardcoded chunk-sizes which are not optimal any more.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

    update

    This was my 5000 th post, time to retire....