diff options
author | Andrew Gallant <jamslam@gmail.com> | 2020-03-22 21:02:51 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2020-03-22 21:02:51 -0400 |
commit | 0ea65efd6d7a98b721fcf5f62a6e549204ee01b2 (patch) | |
tree | b2f689f8a86e981365ff1cafe4ae098042948494 /crates/regex/Cargo.toml | |
parent | 20deae6497820587ee523a72b6326356016994a6 (diff) |
regex: special case literal extraction
In a prior commit, we fixed a performance problem with the -w flag by
doing a little extra work to extract literals. It turns out that using
literals in this case when the -w flag is NOT used results in a
performance regression. The reasoning is that we end up using a "fast"
regex as a prefilter when the regex engine itself uses its own
equivalent prefilter, so ripgrep ends up redoing a fair amount of work.
Instead, we only do this extra work when we know the -w flag is enabled.
Diffstat (limited to 'crates/regex/Cargo.toml')
0 files changed, 0 insertions, 0 deletions