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
Hot Topic (More than 8 Replies) Compilation taking 30+ seconds (Read 4508 times)
TomKi
Newbies
*
Offline


Posts: 7
Joined: Feb 22nd, 2018
Compilation taking 30+ seconds
Feb 22nd, 2018 at 10:32pm
Print Post  
Hi there,

I have used Visual Studio (2015) with visual micro (1.1706.25) for two years now, and have recently purchased a new computer. After installing Visual Studio (2017) and visual micro (1.1801.27) my compilation time has increased from < 1 second, to 30+ seconds on multiple tries. Any help pointing me in the right direction to solve this?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation taking 30+ seconds
Reply #1 - Feb 22nd, 2018 at 11:25pm
Print Post  
Hi

Is this the case with a new empty project?

Which arduino ide, board and tool chain (if applicable) are you using?

Thanks
  
Back to top
WWW  
IP Logged
 
TomKi
Newbies
*
Offline


Posts: 7
Joined: Feb 22nd, 2018
Re: Compilation taking 30+ seconds
Reply #2 - Feb 23rd, 2018 at 8:32pm
Print Post  
Hi,

I am using Arduino 1.8.5.0, along with a Mega 2560.
  
Back to top
 
IP Logged
 
TomKi
Newbies
*
Offline


Posts: 7
Joined: Feb 22nd, 2018
Re: Compilation taking 30+ seconds
Reply #3 - Feb 23rd, 2018 at 8:37pm
Print Post  
With a completely empty project (just setup() and loop()) it took 26s to compile initially, and 6s the second time.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation taking 30+ seconds
Reply #4 - Feb 23rd, 2018 at 9:40pm
Print Post  
The recent ardino tool chains are very slow. Switching on vMicro>Compiler>Parallel Builds would help but it doesn't  explain why you keep getting a full compile in the main project.

We can check you project F4 optimization settings but first let's see what you see after clicking Solution>Build on your main project. 

Switch on vmicro>compiler>verbose prior to build so we see what is happening then post as a TXT file or email to info[at]visualmicro.com

  
Back to top
WWW  
IP Logged
 
TomKi
Newbies
*
Offline


Posts: 7
Joined: Feb 22nd, 2018
Re: Compilation taking 30+ seconds
Reply #5 - Feb 23rd, 2018 at 10:18pm
Print Post  
My new computer's build: (26s)

https://drive.google.com/open?id=1-gZTJT8hiPSkJQ4RHB2Z80Wl5_M_S7HF

My old computers build (two in a row): (7s, and 1s)

https://drive.google.com/open?id=1yFiZBi0YkGVNJPIbvIvt7PpDGOfHblul

It seems to spend a lot of time linking as well. Also, my new computer is way more powerful than my old one.
« Last Edit: Feb 23rd, 2018 at 10:38pm by TomKi »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation taking 30+ seconds
Reply #6 - Feb 23rd, 2018 at 11:15pm
Print Post  
thanks.

1)
please switch the tool bar on the new machine from Debug to Release and then build twice and post the output

2)
on the old machine please click build>rebuild solution


then post both outputs.
  
Back to top
WWW  
IP Logged
 
TomKi
Newbies
*
Offline


Posts: 7
Joined: Feb 22nd, 2018
Re: Compilation taking 30+ seconds
Reply #7 - Feb 23rd, 2018 at 11:22pm
Print Post  
Oh, totally forgot I had Debug on, here are both builds:

New Computer (Two Builds):
https://drive.google.com/open?id=17L4N3KyU6dskUIY1P3jAG-GltBmZQqCK

Old Computer (Rebuilt):
https://drive.google.com/open?id=1jcC1G9aTT1k-KjVWdEdlhFHfztG8k7Kp
« Last Edit: Feb 23rd, 2018 at 11:27pm by TomKi »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation taking 30+ seconds
Reply #8 - Feb 24th, 2018 at 12:38pm
Print Post  
I believe the difference is two things:-

1) That you have arduino 1.6.9 installed on old and 1.8.5 on new. They (arduino) have been messing with tool chains for some time and older arduino tool chains are significantly faster on windows

2) Because your cached compile is so slow I would also look at your virus checker.

Can you conform 1st and 2nd build speed in arduino ide?
  
Back to top
WWW  
IP Logged
 
TomKi
Newbies
*
Offline


Posts: 7
Joined: Feb 22nd, 2018
Re: Compilation taking 30+ seconds
Reply #9 - Feb 24th, 2018 at 2:55pm
Print Post  
So Arduino 1.8.5 took about twice as long to rebuild compared to 1.6.9. So I Uninstalled 1.8.5 on my new computer, and reverted back to 1.6.9.

My rebuild times are now ~28s on my new computer, and ~16s on my old computer. However a second build has them both at ~1s which is awesome.
  
Back to top
 
IP Logged
 
TomKi
Newbies
*
Offline


Posts: 7
Joined: Feb 22nd, 2018
Re: Compilation taking 30+ seconds
Reply #10 - Feb 24th, 2018 at 3:03pm
Print Post  
« Last Edit: Feb 24th, 2018 at 3:07pm by TomKi »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation taking 30+ seconds
Reply #11 - Feb 24th, 2018 at 10:27pm
Print Post  
Great I suspect that difference is either virus checker or disk speed.

If you switch on vMicro>Compiler>Parallel Build the build should be 50% quicker when libs and core do need recompiling.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation taking 30+ seconds
Reply #12 - May 28th, 2018 at 1:22pm
Print Post  
Aside from virus checker causing slowness their is an update which also helps

Update: The work in progress notifications area has a download that uses a new cache system for cores. 

This should mean that you only see a few core builds (per board/properties) within all existing and new projects. Generally should be much faster unless you only ever work on one project. The option is optional and can be disabled.

After building once for a board, the 1st build of new projects with no libs in Release mode should beĀ  < 3 secs
« Last Edit: May 28th, 2018 at 6:19pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint