Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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



You just said that to the author of The Silver Searcher (ag).

[0] https://github.com/ggreer/the_silver_searcher




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: