1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-04-24 17:12:16 +02:00

ripgrep: add warning to --pre flag

The --pre flag can result in a pretty large performance penalty, so put
a warning in the flag documentation. This warning is important because a
flag like this could easily wind up in a user's configuration file.
This commit is contained in:
Andrew Gallant 2018-07-21 17:50:54 -04:00
parent 231456c409
commit c96a358593
No known key found for this signature in database
GPG Key ID: B2E3A4923F8B0D44

View File

@ -1473,6 +1473,10 @@ contents of FILE. This option expects the COMMAND program to either be an
absolute path or to be available in your PATH. An empty string COMMAND absolute path or to be available in your PATH. An empty string COMMAND
deactivates this feature. deactivates this feature.
WARNING: When this flag is set, ripgrep will unconditionally spawn a process
for every file that is searched. Therefore, this can incur a large performance
penalty if you don't otherwise need the flexibility offered by this flag.
A preprocessor is not run when ripgrep is searching stdin. A preprocessor is not run when ripgrep is searching stdin.
When searching over sets of files that may require one of several decoders When searching over sets of files that may require one of several decoders