Windows Defender taking a lot of resources
Any virus scanner needs to process at some level the file written to disk to be effective. This means that any virus scanner will use up CPU and will slow down file I/O. In this sense, in our tests, Windows Defender is performing the best of the bunch, but it still pretty much doubles the time to perform file actions.
The guide below is for Windows Defender, but similar features are in pretty much any virus scanner.
Disclaimer: Do these only if you know what you are doing. IT policies usually control these in a company setting, so you may not create exclusions, and you should contact your IT.
Python and conda-forge based development environment handling and isolation create many small files when creating new environments. This happens during the initial start and when you open robots with a new dependencies (unique
conda.yaml file). Windows is actively trying to protect the user from malicious files, meaning there is a lot of work for Windows Defender.
It is quite common for development machine to make exclusion rules for these kinds of high-traffic folders to speed up the developer experience.
However you should only do this with the permission of your IT and temporarely.
Virusscanning is never a wasted effort and no operating system is safe, so do not take this step lightly
Here's how to create exclusion rules:
Virus & thread protection: Start -> type
Virus & threat protection settings
- Find and select
Add or remove exclusions
Add an exclusion->
- Browse to folder
- Browse to folder
- Exclusion is now done and should be visible on the list.
Note: The path for the exclusions needs to be an absolute path like in the picture below, so the
%USERPROFILE%has to be opened to the full path. The sequence above should do that, but we have reports on that not happening.
- You can now close the settings.
This setting should ease up the
Antimalware Service Executableprocess from using up too many resources.