Re:Why GNU grep is fast (2010)
by miguelmota on Friday March 29, 2019 @11:59AM
(#19522780)
+1 for ripgrep. It's crazy fast
[ Parent
| on HN ]
It's more that it uses concurrency intelligently. The underlying stuff is similar to GNU grep.
ripgrep's README has this to say about speed:
> ripgrep is built on top of Rust's regex engine. Rust's regex engine uses finite automata, SIMD and aggressive literal optimizations to make searching very fast. Rust's regex library also maintains performance with full Unicode support by building UTF-8 decoding directly into its deterministic finite automaton engine.
The author said in a sister thread[1] that for similar tasks the performance is comparable. ripgrep (and ag) both feel incredibly fast because they skip whole files and directories which are usually unwanted when searching.