summaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2020-02-16 10:43:26 -0500
committerAndrew Gallant <jamslam@gmail.com>2020-02-17 17:16:28 -0500
commitcd8ec38a68b28d6ce2f7821d80fbeb37fe0cf7ac (patch)
treeca174532791f1c671b42b7a2b188aa4ae15674f8 /CHANGELOG.md
parent6a0e0147e03a0322fc8e7e959e787f7a635df906 (diff)
grep-regex: add fast path for -w/--word-regexp
Previously, ripgrep would always defer to the regex engine's capturing matches in order to implement word matching. Namely, ripgrep would determine the correct match offsets via a capturing group, since the word regex is itself generated from the user supplied regex. Unfortunately, the regex engine's capturing mode is still fairly slow, so this commit adds a fast path to avoid capturing mode in the vast majority of cases. See comments in the code for details.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 34caeaa2..203bd1c6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,8 @@ Performance improvements:
of ` `.
* PERF:
Improve literal detection when the `-w/--word-regexp` flag is used.
+* PERF:
+ Improve overall performance of the `-w/--word-regexp` flag.
Feature enhancements: