mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 01:30:21 -07:00
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.
This commit is contained in:
parent
e79085e9e4
commit
3fe701498e
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user