2 ms·
Gnu grep uses Boyers-Moore for searching - it's wicked fast. BSD grep installed by default on Macos might not be using this algorithm. This 2 year old HN post
by fnord123 5y ago
Gnu grep uses Boyers-Moore for searching - it's wicked fast. BSD grep installed by default on Macos might not be using this algorithm.
This 2 year old HN post shows the performance difference between Gnu grep and BSD grep on Macos:
https://news.ycombinator.com/item?id=19522456 https://news.ycombinator.com/item?id=19522456