4 ms·
Hmmm, how performant is it?
by selbyk 11y ago
Hmmm, how performant is it?
- acveilleux 11y agoThere's really not that many possible way to beat GNU grep at least in the regexp matching case. It's as close to the optimal solution as you'll find (especially with `--mmap`) and really, as close as is possible.
- bpicolo 11y agohttps://github.com/ggreer/the_silver_searcher https://github.com/ggreer/the_silver_searcher
- acveilleux 11y agoOkay, that does sound like it might be faster. If Ag unrolls the main loop and ignores line breaks unless there's a match, the JIT regex might well give you the decisive speed edge. (I'm ignoring the parallel part of Ag, obviously that's a winner in the ack use case.) I'm going to seriously consider switching to Ag from ack, especially since my work source tree has recently switched to an SSD.
- bpicolo 11y agoThat 33% gain on typing speed is the real gain ;D