mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-07-11 14:30:24 +02:00
065c44998092906746f6585090bafbf36d98342b
I'm pretty disappointed by the performance of regex sets. They are apparently spending a lot of their time in construction of the DFA, which probably means that the DFA is just too big. It turns out that it's actually faster to build an *additional* normal regex with the alternation of every glob and use it as a first-pass filter over every file path. If there's a match, only then do we try the more expensive RegexSet.
Description
ripgrep recursively searches directories for a regex pattern while respecting your gitignore
Readme
15 MiB
Languages
Rust
94.4%
Python
2.7%
Shell
2.1%
Roff
0.8%