1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-01-19 05:49:14 +02:00
Andrew Gallant 0ea65efd6d
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.
2020-03-22 21:02:51 -04:00
..
2020-03-15 21:42:54 -04:00
2020-03-15 13:19:14 -04:00
2020-03-15 21:42:54 -04:00
2020-03-15 21:42:54 -04:00
2020-03-16 19:16:24 -04:00
2020-03-15 21:42:54 -04:00
2020-03-15 21:42:54 -04:00
2020-03-15 21:42:54 -04:00
2020-03-15 21:42:54 -04:00