luni
Well-known member
I'm using VisualStudio 2017 and makefiles to compile (probably visualMicro will show the same issue) and noticed that the current Windows update (1709) significantly slows down compiling (~factor 3). After a lot of googling and experimenting I identified Windows Defender as source of the irritating slow down. (I don't use any other virus scanner). In case you observe the same behavior you can easily check by temporarily disabling the real time protection
a) Disabled Real Time Protection:
Teensyduino core library: 11s
Recompiling after just touching main.cpp 0.5s
b) Enabled Real Time Protection:
Teensyduino core library: 30s
Recompiling after just touching the main file 3-5s
Solution:
You can exclude complete folders from scanning in the Defender Options. I excluded c:\Program Files\Microsoft VisualStudio and the folder containing the build tools (gcc, make). Excluding those folders brought back the compile times to the usual 11s for a complete recompile (using a quite old desktop PC with a magnetic hard disc).
Hope that saves time in case somebody faces the same issue.
.
a) Disabled Real Time Protection:
Teensyduino core library: 11s
Recompiling after just touching main.cpp 0.5s
b) Enabled Real Time Protection:
Teensyduino core library: 30s
Recompiling after just touching the main file 3-5s
Solution:
You can exclude complete folders from scanning in the Defender Options. I excluded c:\Program Files\Microsoft VisualStudio and the folder containing the build tools (gcc, make). Excluding those folders brought back the compile times to the usual 11s for a complete recompile (using a quite old desktop PC with a magnetic hard disc).
Hope that saves time in case somebody faces the same issue.
.