Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Speed of compile: 55 secs instead of previous 2-6 (Read 4488 times)
Michel V
Newbies
*
Offline


Posts: 5
Joined: Jan 13th, 2016
Speed of compile: 55 secs instead of previous 2-6
Dec 12th, 2016 at 2:48pm
Print Post  
Hey,

Upgraded to AS 7.0.1188 and current VM extension (1612.1.0).
The speed of compile has dropped tremendously. Previously, a second compile (after a little code change) only took some seconds. Now a second compile takes 22 secs.
Any way to speed this up?
Something I need to look at?

I'm using good old .ino files and AVRISP as a tool.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Speed of compile: 55 secs instead of previous 2-6
Reply #1 - Dec 12th, 2016 at 3:11pm
Print Post  
There is a new arduino system that performs a "deep search" to auto discover libraries-in-libraries. 

If we don't do this then many users will get a lot of complaints because many library authors are making full use of the system. Without auto-discovery compile will fail if a library uses another library that has not been included in the main sketch.ino

That said, experienced users know how to include the libraries they want so Visual Micro has an option to switch this feature off. Uncheck menu item "vMicro>Compiler>Deep Search"

After changing this option the next compile will be a full compile. Subsequent compiles should then be faster.

What effect does switching this option off have on your build times?
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Speed of compile: 55 secs instead of previous 2-6
Reply #2 - Dec 13th, 2016 at 3:28pm
Print Post  
Did you manage to try with "vMicro>Compiler>Deep Search" switched off?
  
Back to top
WWW  
IP Logged
 
Michel V
Newbies
*
Offline


Posts: 5
Joined: Jan 13th, 2016
Re: Speed of compile: 55 secs instead of previous 2-6
Reply #3 - Dec 13th, 2016 at 3:59pm
Print Post  
Hey,

Thanks for the explanation, makes sense.
I tested: first build now  (38,10 secs)
Second - no code change (5,28 secs)
Both without errors.

Much better indeed (although the previous 2 secs was nice as well).
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Speed of compile: 55 secs instead of previous 2-6
Reply #4 - Dec 13th, 2016 at 4:04pm
Print Post  
Thanks

There will be a new option in the not too distant future to allow for a higher level of caching. The previous system didn't always pick up changes in deep underlying files so the sketch code was not recompiled when it should be. For 99% of users this worked well but for a few users it caused problems.

So a new setting will allow for more aggressive cache leaving the user to click the "Rebuild" command on the occasions where changes in external code have not been detected. There will also be better cache when switching between release/debug which is currently slow.
« Last Edit: Dec 13th, 2016 at 4:05pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Speed of compile: 55 secs instead of previous 2-6
Reply #5 - Jan 16th, 2017 at 7:03pm
Print Post  
Hi,

Updates

The main cause of the slowness is if you have upgraded the Arduino IDE above 1.6.9. The AVR tools have been updated in recent releases of Arduino and are much slower than previous releases. Try the zip of arduino 1.6.9 can be downloaded from arduino.cc so you can easily try it out. It affects build times by many 100's of %

+

The Visual Studio version of Visual Micro has huge recent improvements but also new features such as "Parallel build" which makes a big difference. The changes will be reflected to Atmel studio over the next month or so. Having said that if you are not using an ICE debugger then Visual Studio is probably a better IDE.

« Last Edit: Jan 16th, 2017 at 7:03pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint