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.
rep
grep, written in Rust using the
regex
crate.
Description
Languages
Rust
94.6%
Python
2.6%
Shell
2.1%
Roff
0.7%