GNU grep is 10x faster than Mac grep
That's likely all you need to do to install and make default GNU grep, which on my machine is a ~10x speedup over the grep that ships with Mac OS.Of course in this particular case I could use git grep, which doesn't use the system's grep. It's about the same speed as GNU grep:/usr/bin/grep -V says that it's FreeBSD grep version 2.5.1. I don't know if the grep FreeBSD actually ships is similarly slow.
What the influencers are saying
-
Ryan Paul
Wow, the FreeBSD implementation of grep that ships in Mac OS X is apparently 10 times slower than GNU grep: http://t.co/RjZd1t9H
-
news.yc Popular
GNU grep is 10x faster than Mac grep http://t.co/pFb3XSOf
-
Dion Almaer
git grep / gnu grep are "10x" faster than the OSX builtin http://t.co/SLDILlYR
Related Reading
| To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy. |













