3 ms·
One thing we found that severely impacted performance on Windows was the built-in anti-virus software (Windows Defender). This came to our attention when we fo
by shaggie76 7y ago
One thing we found that severely impacted performance on Windows was the built-in anti-virus software (Windows Defender).
This came to our attention when we found one of our programs ran dramatically better on Windows 7 than 10 and we traced it back to the 7 machine not having Defender installed. We ended up optimizing our IO behavior to avoid triggering Defender and it made a huge difference.
This leads me to wonder how many of these benchmarks suffer on Windows from similar problems or if Defender was disabled how much of a difference it would make.
- for_xyz 7y agoDefender does the scanning on CloseHandle() calls in untrusted code which can block the thread for even up to ~10ms (including other NTFS filter drivers) which is significant if you do open() close() pairs a lot. More info about the similar issue and solution is apparently to sign the application [1] [1] https://github.com/rust-lang/rustup/issues/1540#issuecomment-491721670 https://github.com/rust-lang/rustup/issues/1540#issuecomment...
- ahartmetz 7y agoI wonder if my former Windows using coworkers knew about that! They were quite good though so if there was something to know at the time, they probably did. Common knowledge in the office was that Windows small file I/O performance is about 1/10th of Linux, probably due to NTFS and ACLs being expensive to evaluate.