Hi everyone! I have a brand new Dell Inspiron 15 running Windows 10 64-bit with the specs:
Intel Core i5-7200U
8GB RAM
1TB HDD
My problem is, every single compilation of any sketch takes 3 minutes (I have the latest IDE).
I disabled McAfee antivirus -- no significant change.
I also scanned for malware using many AV to no avail.
When I look at the verbose output, there are >50 reduntant lines where each line takes at least 1 second to appear.
There is no application which can slow compilation that I can think of.
I have also viewed other methods to no avail. It is quite frustrating as my other low spec pc (running Windows 8 32-bit) takes less than 5 seconds to compile any code.
I also noticed that the verbose output of my low spec pc is much shorter than my laptop.
Does anyone have suggestions? Any help would be greatly appreciated!
I remember someone reporting that they had discovered the cause of the slow compilation for them was Arduino accessing files from a network share drive (or some similar term). If you examine the verbose output do you see anything like that in the paths?
jasperizak:
I also noticed that the verbose output of my low spec pc is much shorter than my laptop.
Are you using an older version of the Arduino IDE on the PC?
I don't have a network share drive and I don't have any sort of file access through network
BTW this is the redundant line:
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\jasper\AppData\Local\Temp\arduino_build_62974\core\core.a" "C:\Users\jasper\AppData\Local\Temp\arduino_build_62974\core\new.cpp.o"
I also have the latest IDE on my other pc.
Thanks
Edit: I noticed that the end of each line is not the same, although they all end with .cpp.o
(eg. HardwareSerial.cpp.o)
this is the redundant line
they're not redundant. The build process builds (or skips) 20+ files from the "Arduino core", then combines them into a library, then builds any libraries you use, and then your sketch, and then combines them together.
A lot of those steps should take less than 1s each. Even at ~1s each, you should be closer to 1m compile time than 3 minutes!
Hi! 1s is a bit of an understatement sorry. I took a video of the IDE compiling and it took 2 minutes and 58 seconds. If you are interested in seeing the video, here is the link:
One of the more common issues is a users security software especially anti virus.
In those cases adding the Arduino locations to the security softwares EXCLUSION / WHITE list is usually the fix.
C:UsersXXXAppDataLocalArduino15*
C:Program Files (x86)Arduino*
I tried whitelisting in McAfee. McAfee does not allow exclusion of an entire folder so I whitelisted every single file but compilation is still slow. Also, even when I turn off Real Time Scanning in McAfee, I still se a lot of McAfee related processes. I tried to boot in safe mode to see if my antivirus is the cause of the slowdown, but apparently, the IDE does not run in safe mode.
Wipe Windows and install Linux?
...R
Being unable to exclude a folder is probably a partial cause as the IDE does make some temporary files inside a directory.
There may be some help on that issue HERE and HERE
But be careful not to exclude areas that might be sensitive to AV just to try speed up other programs.
Not used Mcafee or Norton for many many years as I find them to be BLOATWARE and definitely reduce computer performance.
Thanks for the links! I'll try installing the same McAfee on my other PC to see if it is the cause of the slowdown.
jasperizak:
Thanks for the links! I'll try installing the same McAfee on my other PC to see if it is the cause of the slowdown.
As in ... I don't understand why I am walking so slowly - hang on, I'll just break my other leg to see if that explains it
...R
Thanks R2 that was my thinking too and great analogy
Well for some reason I can't copy McAfee. Is there any way to run the IDE in safe mode?
What exactly happens when you try to run the IDE in safe mode?
You can get more information on failure to start or crashes of the Arduino IDE by running arduino_debug.exe (located in the Arduino IDE installation folder) from the command line and then examining the output.
The arduino_debug.exe runs for a fraction of a second and I can barely make words out of the output. The first line though is "DPI detection failed, fallback to 96 dpi"
That's why I told you to run it from the command line.
Well when I run it from the command line "Arduino IDE has stopped working" shows up.
That's all?
Is there any way to get logging out of anti-virus programs?
I'm wondering if it's possible that they do some sort of net-based lookup for certain types of files/accesses, and the people who are having particularly slow compiles are "somewhere" where those connections time out or something.
(Or perhaps searching the disk for info that's supposed to become permanent, but doesn't?)
There are lots of "traffic" monitoring tools
Microsoft's own offering HERE is a safe bet.
Most AV is able to run in offline mode (even safe mode) and should only want online for update checks and submissions.
Anything outside them realms smacks of bloatware.
There is almost always a method to whitelist items even if it is not always obvious.
Live file tracing can be a little harder to do and is not for the beginner.