VS Arduino
Visual Micro >> Installation & Troubleshooting >> Re: very slow compilation (RESOLVED: support for utf8 chars in path)
https://www.visualmicro.com/forums/YaBB.pl?num=1636193358

Message started by Balázs on Nov 6th, 2021 at 10:09am

Title: Re: very slow compilation (RESOLVED: support for utf8 chars in path)
Post by Balázs on Nov 6th, 2021 at 10:09am
Hello !

Compilation is also very slow on my side. I saved the verbose output and attached. Can you help? Thank you!
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=compile_huzzah_slow.txt ( 2743 KB | 14 Downloads )

Title: Re: very slow compilation 1906_29
Post by Tim@Visual Micro on Nov 6th, 2021 at 3:40pm
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

Title: Re: very slow compilation 1906_29
Post by Balázs on Nov 11th, 2021 at 7:30pm
Please find the verbose output attached to my first post.

Title: Re: very slow compilation 1.2021.0106-17
Post by Simon@Visual Micro on Nov 12th, 2021 at 4:21pm
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?

Title: Re: very slow compilation 1.2021.0106-17
Post by Tim@Visual Micro on Nov 19th, 2021 at 2:54pm
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



Title: Re: very slow compilation 1.2021.0106-17
Post by Simon@Visual Micro on Nov 30th, 2021 at 4:10pm
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

Title: Re: very slow compilation 1.2021.0106-17
Post by Balázs on Dec 5th, 2021 at 7:21pm
Hello,

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

Thx again!
Balázs

Title: Re: very slow compilation 1.2021.0106-17
Post by Tim@Visual Micro on Dec 6th, 2021 at 5:06pm
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


Title: Re: very slow compilation 1.2021.0106-17
Post by Balázs on Dec 6th, 2021 at 7:49pm
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".
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=verbose_output_12secs_001.txt ( 90 KB | 3 Downloads )

Title: Re: very slow compilation 1.2021.0106-17
Post by Tim@Visual Micro on Dec 6th, 2021 at 9:04pm
Thanks, "Auto Debugging" is on by default. You can use the configuration names on the toolbar to switch between "Release" and "Debug".

Title: Re: very slow compilation (RESOLVED: support for utf8 chars in path)
Post by Balázs on Dec 18th, 2021 at 6:01pm
Got it; I switched to "Release", then my 2nd build took ~10 secs. Did you find anything by my log analysis?

Title: Re: very slow compilation (RESOLVED: support for utf8 chars in path)
Post by Tim@Visual Micro on Dec 18th, 2021 at 6:24pm
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.

Title: Re: very slow compilation (RESOLVED: support for utf8 chars in path)
Post by Balázs on Dec 29th, 2021 at 11:40am
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.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.