summaryrefslogtreecommitdiffstats
path: root/FAQ.md
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-08-20 17:58:29 -0400
committerAndrew Gallant <jamslam@gmail.com>2018-08-20 17:58:29 -0400
commit180054d7dc6975a8eb76e9020b00bfcbea9edf3a (patch)
tree85b784cb12bb7afa541f3176084a7ce0fd62a993 /FAQ.md
parent7eaaa04c6999487b8806e90ba63f04c5cfd9e697 (diff)
doc: caveats
Diffstat (limited to 'FAQ.md')
-rw-r--r--FAQ.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/FAQ.md b/FAQ.md
index 9a803176..6a301d00 100644
--- a/FAQ.md
+++ b/FAQ.md
@@ -675,14 +675,18 @@ no longer needs to do any kind of UTF-8 checks. This allows the file to get
memory mapped and passed right through PCRE2's JIT at impressive speeds. (As
a brief and interesting historical note, the configuration of "memory map +
multiline + no-Unicode" is exactly the configuration used by The Silver
-Searcher. This analysis perhaps sheds some reasoning as to why it converged on
-that specific setting!)
+Searcher. This analysis perhaps sheds some reasoning as to why that
+configuration is useful!)
In summary, if you want PCRE2 to go as fast as possible and you don't care
about Unicode and you don't care about matches possibly spanning across
multiple lines, then enable multiline mode with `-U` and disable PCRE2's
Unicode support with the `--no-pcre2-unicode` flag.
+Caveat emptor: This author is not a PCRE2 exit, so there may be APIs that can
+improve performance. Similarly, there may be alternative designs for a
+searching tool that are more amenable to how PCRE2 works.
+
<h3 name="rg-other-cmd">
When I run <code>rg</code>, why does it execute some other command?