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

How fast is grep+wc on your machine?

  • Comment on Re^2: How to optimize a regex on a large file read line by line ?

Replies are listed 'Best First'.
Re^3: How to optimize a regex on a large file read line by line ?
by marioroy (Prior) on Apr 21, 2016 at 16:33 UTC

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

    wc -l: 2.162 seconds grep -c: 45.316 seconds
      > 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....