summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2019-04-15 10:27:28 -0400
committerAndrew Gallant <jamslam@gmail.com>2019-04-15 17:47:48 -0400
commit3fe701498ec249d09534e8423085dd00acf6d967 (patch)
treef334d38a1657f1c5856fd93c7530478e3ee027a6
parente79085e9e459a09b10aee01447e0f592315af7d8 (diff)
doc: add note about --pre-glob
There was a performance warning in the --pre docs, but didn't mention --pre-glob as a possible mitigation to it.
-rw-r--r--src/app.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app.rs b/src/app.rs
index a4f0aa58..92f908e4 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -2019,7 +2019,8 @@ or the '--no-pre' flag will disable this behavior.
WARNING: When this flag is set, ripgrep will unconditionally spawn a
process for every file that is searched. Therefore, this can incur an
unnecessarily large performance penalty if you don't otherwise need the
- flexibility offered by this flag.
+ flexibility offered by this flag. One possible mitigation to this is to use
+ the '--pre-glob' flag to limit which files a preprocessor is run with.
A preprocessor is not run when ripgrep is searching stdin.