Go Down

Topic: Slow compilation on a brand new laptop (Read 385 times) previous topic - next topic

jasperizak

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!  :)

pert

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?

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?

jasperizak

#2
May 16, 2017, 02:35 am Last Edit: May 16, 2017, 02:43 am by jasperizak
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:
Code: [Select]
"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)

westfw

Quote
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!


jasperizak

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:
https://youtu.be/qr-m4oBbW0E

ballscrewbob

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*
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

jasperizak

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.

Robin2

Two or three hours spent thinking and reading documentation solves most programming problems.

ballscrewbob

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.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

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.

Robin2

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
Two or three hours spent thinking and reading documentation solves most programming problems.

ballscrewbob

Thanks R2 that was my thinking too and great analogy ;)

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

jasperizak

Well for some reason I can't copy McAfee. Is there any way to run the IDE in safe mode?

pert

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.

jasperizak

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"

Go Up