diff options
author | Andrew Gallant <jamslam@gmail.com> | 2019-04-15 10:27:28 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2019-04-15 17:47:48 -0400 |
commit | 3fe701498ec249d09534e8423085dd00acf6d967 (patch) | |
tree | f334d38a1657f1c5856fd93c7530478e3ee027a6 /src | |
parent | e79085e9e459a09b10aee01447e0f592315af7d8 (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.
Diffstat (limited to 'src')
-rw-r--r-- | src/app.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |