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) Re: very slow compilation (RESOLVED: support for utf8 chars in path) (Read 3953 times)
Balázs
Newbies
*
Offline


Posts: 9
Joined: Mar 28th, 2021
Re: very slow compilation (RESOLVED: support for utf8 chars in path)
Nov 6th, 2021 at 10:09am
Print Post  
Hello !

Compilation is also very slow on my side. I saved the verbose output and attached. Can you help? Thank you!
« Last Edit: Dec 7th, 2021 at 3:29pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1906_29
Reply #1 - Nov 6th, 2021 at 3:40pm
Print Post  
Hi,

The thread was answered so I moved this question to a new one.

The quick post on this page does not show the attachments option. Cilick the Reply button to add attachments.

Thank you
  
Back to top
WWW  
IP Logged
 
Balázs
Newbies
*
Offline


Posts: 9
Joined: Mar 28th, 2021
Re: very slow compilation 1906_29
Reply #2 - Nov 11th, 2021 at 7:30pm
Print Post  
Please find the verbose output attached to my first post.
« Last Edit: Nov 11th, 2021 at 7:31pm by Balázs »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: very slow compilation 1.2021.0106-17
Reply #3 - Nov 12th, 2021 at 4:21pm
Print Post  
Thanks for the logs.

If you disable the Serial Debugger is the compilation considerably faster?

If not would it be possible to send us the entire solution via email so we can investigate this further?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1.2021.0106-17
Reply #4 - Nov 19th, 2021 at 2:54pm
Print Post  
Hi

We are looking into this issue. It is certainly attempting to scan too much code in the core during compilation.

We will come back with some questions on Monday.

Regards


  
Back to top
WWW  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: very slow compilation 1.2021.0106-17
Reply #5 - Nov 30th, 2021 at 4:10pm
Print Post  
This should be resolved in the latest release (21.11.08-07), which is available from the top of the board below:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
 
IP Logged
 
Balázs
Newbies
*
Offline


Posts: 9
Joined: Mar 28th, 2021
Re: very slow compilation 1.2021.0106-17
Reply #6 - Dec 5th, 2021 at 7:21pm
Print Post  
Hello,

Thank you. Build time is now reduced to ~12 secs. I hope one day it will be ~1 sec Wink , but it's OK for now Smiley

Thx again!
Balázs
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1.2021.0106-17
Reply #7 - Dec 6th, 2021 at 5:06pm
Print Post  
Good to hear that. 

Please open the project and click build. After the build complete click build again.

Then send us the output. It will be useful to check that the output is correct.

12 secs sounds too long for a cached build of a small/medium sized project.

Thanks

  
Back to top
WWW  
IP Logged
 
Balázs
Newbies
*
Offline


Posts: 9
Joined: Mar 28th, 2021
Re: very slow compilation 1.2021.0106-17
Reply #8 - Dec 6th, 2021 at 7:49pm
Print Post  
I did as you proposed, please find the verbose output attached. What is strange is that I can't switch debug to off. whenever I click to "off", I stays "Serial".
« Last Edit: Dec 6th, 2021 at 7:52pm by Balázs »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1.2021.0106-17
Reply #9 - Dec 6th, 2021 at 9:04pm
Print Post  
Thanks, "Auto Debugging" is on by default. You can use the configuration names on the toolbar to switch between "Release" and "Debug".
  
Back to top
WWW  
IP Logged
 
Balázs
Newbies
*
Offline


Posts: 9
Joined: Mar 28th, 2021
Re: very slow compilation (RESOLVED: support for utf8 chars in path)
Reply #10 - Dec 18th, 2021 at 6:01pm
Print Post  
Got it; I switched to "Release", then my 2nd build took ~10 secs. Did you find anything by my log analysis?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation (RESOLVED: support for utf8 chars in path)
Reply #11 - Dec 18th, 2021 at 6:24pm
Print Post  
Great, It looked good. 10 secs is probably okay, it depends on the speed of the pc disk/cpu,virus checkers etc.

Some toolchains do have event hooks defined. The hooks normally run .exe's, we can't cache what they do. For example the output shows that the board you are using runs "recipe.hooks.linking.prelink" events.

The "deep search for libraries" system has the highest cost in your build. Switching it off means that the .ino code must have an #include for at least one .h file of each library that the project needs to use. With deep search "on", the output shows the libraries that are used. Without deep search the #includes in the .ino need to include the same libraries. The last consideration, without deep search, if the code uses "types" before they are defined (not in earlier code) then the auto generated prototypes might be inserted in an incorrect position.
  
Back to top
WWW  
IP Logged
 
Balázs
Newbies
*
Offline


Posts: 9
Joined: Mar 28th, 2021
Re: very slow compilation (RESOLVED: support for utf8 chars in path)
Reply #12 - Dec 29th, 2021 at 11:40am
Print Post  
Thank you for the detailed explanation. In my example I realized that it can be compiled without deep search, so every "type" is defined at the right place. By switching deep search off, I spared even more compilation time, so now it is ~5 secs that makes rapid development possible.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint