4 ms·
I can't speak to m1 in particular, but BSD grep is known to be very slow regardless of platform. You can just brew install grep to get a fast one, but you'll st
by throwaway09223 5y ago
I can't speak to m1 in particular, but BSD grep is known to be very slow regardless of platform. You can just brew install grep to get a fast one, but you'll still always have to always deal with avoiding the slow system grep.
ag and rg are other fast options.
The speed of GNU grep vs BSD grep is discussed on the BSD mailing lists here: https://lists.freebsd.org/pipermail/freebsd-current/2010-August/019310.html https://lists.freebsd.org/pipermail/freebsd-current/2010-Aug...
- wincy 5y agoRipgrep changed how I search my codebases, it’s so damned fast I love it. I almost always use it when I’m trying to find a pattern or a bit of code I vaguely remember but have forgotten where it might be in a large codebase. Still returns almost instantly.