AGWA / git-crypt

Transparent file encryption in git
https://www.agwa.name/projects/git-crypt/
GNU General Public License v3.0
8.11k stars 472 forks source link

Win10 high CPU usage #226

Open GF-Huang opened 3 years ago

GF-Huang commented 3 years ago

I use SourceTree to manage my repo, after git-crypt init and modify the gitattributes to crypt my project main folders(hundreds files), I open SourceTree to see what changed, this time it will trigger system antimalware service which high CPU usage. And the SourceTree will keep loading a long time.

image

image

agowa commented 2 years ago

It's most likely because Source Tree was invoking a new executable (the git-crypt one) which the antimalware service had never seen before and that executable in turn will access a lot of file from the .git and project directory. And the Antimalware service may slow that down until it completed it's scanning. Try repeatedly opening and closing source tree. Once the Antimalware service has seen it more often it should become way faster again.

This is an issue with a lot of security products...

GF-Huang commented 2 years ago

I will try to add git-crypt and the repo folder into white list. Thanks your tips!