3 ms·
> It looks like ripgrep gets most of its speedup on ag by: A non-trivial amount of time spent is simply reading the files off the disk. If speed is the all-enc
by fragmede 10y ago
> It looks like ripgrep gets most of its speedup on ag by:
A non-trivial amount of time spent is simply reading the files off the disk. If speed is the all-encompassing metric, there's a big gain to be made by pre-processing the files into an index and loading that into memory instead, and that's what livegrep[1] does.
If you find yourself waiting for grep often enough, it's a pretty handy internal tool to configure across all repos.
[1] https://livegrep.com/about https://livegrep.com/about
- therein 10y agoYou just said that to the author of The Silver Searcher (ag). [0] https://github.com/ggreer/the_silver_searcher https://github.com/ggreer/the_silver_searcher