Compiling slow since updating to version 1.8.16

Since I updated my IDE to version 1.8.16 the compilation has become slower.
Particularly the first and the last line of the log I have posted, they each take ~5 seconds to complete. So every time I wanna compile/upload a sketch I have to wait for ~10 seconds before the actual compilation begins.
Previously compiling would start right away and I didn't have to wait this much.

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Pouria\AppData\Local\Arduino15\packages -hardware D:\Personal Folder\Pouria\My Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Pouria\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\Personal Folder\Pouria\My Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10816 -build-path C:\Users\Pouria\AppData\Local\Temp\arduino_build_224419 -warnings=all -build-cache C:\Users\Pouria\AppData\Local\Temp\arduino_cache_164552 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avrdude.path=C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -verbose D:\Personal Folder\Pouria\My Documents\Arduino\projects\test2\test2.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Pouria\AppData\Local\Arduino15\packages -hardware D:\Personal Folder\Pouria\My Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Pouria\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\Personal Folder\Pouria\My Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10816 -build-path C:\Users\Pouria\AppData\Local\Temp\arduino_build_224419 -warnings=all -build-cache C:\Users\Pouria\AppData\Local\Temp\arduino_cache_164552 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avrdude.path=C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -verbose D:\Personal Folder\Pouria\My Documents\Arduino\projects\test2\test2.ino
Using board 'uno' from platform in folder: C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3
Using core 'arduino' from platform in folder: C:\Users\Pouria\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3

Edit:
My operating system is Windows 10
My previous Arduino IDE version was 1.8.9

Slow compilations are often caused by your antivirus software doing an on access scan.

Try TEMPORARILY disabling your antivirus for a single compilation to see if the problem goes away, then turn the antivirus back on.

If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to put the appropriate file, folder, or process on the "allow list" so it doesn't interfere with compilation.

Please be cautious about working without an antivirus. This is only about temporarily disabling it for a quick test. If you don't feel comfortable doing that, fine. You can try going straight to configuring the antivirus to not interfere with the Arduino software.

I tried that and it didn't work. I even added the Arduino installation folder and the Arduino15 folder to the exceptions but the two steps I mentioned above still take a significant amount of time. :confused:

More comments on slow compile, but mine go beyond just v1.8. I have an Alienware desktop (i7-8700k) that I have both v1.8.19 installed and v2.0.0-rc3 installed. Compile times for a simple program (20 lines, 4 libraries, Nano 33 BLE) after repeating a few times are as follows:
Windows i7, 1.8.19: 1min 8s
Windows i7, 2.0.0 rc3: 52s

antivirus (Norton) exceptions in place, antivirus disabled, ran as admin, all local files on SSD C:, nothing changes the numbers.

Interestingly I have an old Macbook Air (2015) i5 version. I installed the v2.0.0-rc3 on it to compare and wow what a difference.
Macbook air 2015 with v2.0.0-rc3: 12s!

So this old, slow, surplus Macbook air outperforms my i7 Alienware desktop by a wide margin .....makes no sense.

The search continues but I would REALLY like to understand how to improve Windows compile time performance.

Thanks and would love some more troubleshooting tips to try.

Yeah it's clearly a software issue but nobody seems to care.

These days the second you mention something is slow people jump in and yell "BUY AN SSD". I'm really happy that you have it running on an SSD and it's still slower than my compile time. Confirms my suspicions.

Yes, it's a shame....I hope it gets fixed in the final v2.0 release! Time will tell, until then a lot of coffee while I sit and watch it compile.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.