Hacker News new | ask | show | jobs
by hayd 3240 days ago
The performance difference between grep and ripgrep is stark, ripgrep is blazingly fast, isn't that worth some "bloat"?
1 comments

Small correction: the performance difference between ripgrep and GNU grep on single large files isn't that great for common use cases. For some more complex cases involving Unicode (and specifically, predominantly non-ASCII files), ripgrep can do a lot better.

(That statement changes a lot if you're looking at another grep like BSD grep, or if you're directly comparing `grep -r pattern` with `rg pattern`, which is always subject to caveats, because the latter is doing some guesswork and parallelism where the former isn't.)