-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rg --files triggers MsMpEng.exe on Windows #600
Comments
I don't understand this ticket. Please consider that I am not a Windows
user. I don't understand the significance of MsMpEng.exe.
On Sep 7, 2017 12:51 AM, "Christof Marti" <notifications@github.com> wrote:
Version 0.6.0.
Not sure what might cause that, but MsMpEng.exe hogs the CPU and rg.exe
makes only very slow progress.
When I use an alternate implementation to list the files in node.js,
MsMpEng.exe remains silent or at least doesn't jam the CPU.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#600>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAb34jsA03YkjNKW713v9ciU3S6JF5NPks5sf3ZigaJpZM4PPSPa>
.
|
MsMpEng.exe is part of an antispyware. It looks like ripgrep triggers its activity. I would kind of expect this to happen if ripgrep scanned the contents of the files, but with Since using node.js to list all files does not show this behavior, I guess ripgrep must be using some API that triggers it. |
But I don't really know what you expect me to do about this. |
I'm using |
@BurntSushi I would like to modify it to use 'Read Attributes' to see if maybe 'Generic Read' triggers MsMpEng.exe's scanning, but can't figure out where that is set. (I'm new to Rust.) |
@chrmarti If you aren't searching with memory maps (force it with Line 221 in beb010d
std::fs::OpenOptions . You may need to use a platform specific OpenOptionsExt trait for Windows to set Windows-specific attributes though.
You could also try forcing the issue with It occurs to me that this is all for opening files to search. For opening ripgrep/ignore/src/gitignore.rs Line 351 in 0668c74
|
Version 0.6.0.
Not sure what might cause that, but MsMpEng.exe hogs the CPU and rg.exe makes only very slow progress.
When I use an alternate implementation to list the files in node.js, MsMpEng.exe remains silent or at least doesn't jam the CPU.
The text was updated successfully, but these errors were encountered: