mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 09:40:22 -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
|
WARNING: When this flag is set, ripgrep will unconditionally spawn a
|
||||||
process for every file that is searched. Therefore, this can incur an
|
process for every file that is searched. Therefore, this can incur an
|
||||||
unnecessarily large performance penalty if you don't otherwise need the
|
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.
|
A preprocessor is not run when ripgrep is searching stdin.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user