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 Insanely Long Compile Times w/ an ESP32 - Even With No Code Change (Read 1997 times)
James IV
Newbies
*
Offline


Posts: 4
Joined: May 13th, 2024
Insanely Long Compile Times w/ an ESP32 - Even With No Code Change
May 25th, 2024 at 4:27pm
Print Post  
Hello everyone,

So as the title stated, I am having some serious problems when it comes to compiling a solution of mine for an ESP32 board (also I have come to realize even my Teensy 4.1 is longer too, the code is written to upload to both boards, switching using "ifdefined" logic).

Before, the first time compiling my solution would takes a long time the first time in relation to opening Visual Studio (I am using 2017 for the record), however, each following compile would be rather quick. 

However, this has all changed, and I have no clue what seems to be the cause, in relation to, what update did what, as around the time I pulled the latest libraries for boards and what not (updated per Arduino IDE), but also tool Visual Studio updates, and Visual Micro. Plus it happened sometime back and I tried to live with it, so I don't remember all the details.

It's become painful where EVERY time I compile, I have to wait 10+ minutes, and it's driving me insane.

I managed to make some improvements, by either turning on "Shared Cache for Cores" or "High Speed Parallel Builds" (I can't remember which it was), as well as changing my deep search to use SCons. This improvement has the first build take 7+ minutes, and follow up builds can be 4+ minutes.

While an improvement, this is still way longer then it used to be, and I can't figure out why.

What bugs me even more, is I was once testing a brand new solution for the ESP32, prototyping some new code, and it never suffered the problem, but my existing solution I have been working on for over 8 months, not the same.

I have done Clean Solutions, I also deleted I believe it was the vcxproj file, to allow it to be regenerated, which from what I recall, didn't do anything.

I can't rebuild this solution from scratch, it's large, and as I mentioned, I have been working on it for over 8 months. Additionally, I am currently running the Visual Micro update "2024_0510_1900"

I could REALLY use some help on this one, because it's making development a lot more painful (I now have even more respect for the devs back when that compilations took forever)
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: Insanely Long Compile Times w/ an ESP32 - Even With No Code Change
Reply #1 - May 28th, 2024 at 8:48am
Print Post  
Thanks for the report.

The Gcc-E Deep Search would be best to use currently as it should cache its results.

Could you send us the complete build output from your project, for a build, and a rebuild so we can review?

After that, the very latest version 2024.0510.01 has a fix in which should mean less rebuilding of code files which have not changed, and can be downloaded from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Can you try the latest version and let us know if this improves the situation for your build times?
« Last Edit: May 28th, 2024 at 4:16pm by Simon@Visual Micro »  
Back to top
IP Logged
 
James IV
Newbies
*
Offline


Posts: 4
Joined: May 13th, 2024
Re: Insanely Long Compile Times w/ an ESP32 - Even With No Code Change
Reply #2 - May 31st, 2024 at 11:43pm
Print Post  
Sorry I am late on this, but wanted to follow up.

First of all, the Teensy 4.1 wasn't actually as affected as as I realized, as long as I used Gcc-E (if it used SCons, it was SLOW to compile), meaning, this issue was just with the ESP32.

However, I did go ahead an install the latest build, 2024_0510_1901, and that seems to have resolved the ESP32 side. 

The first build, as always, is slow, however, ever sequential build was done in like < 20 seconds if I recall right. 

I am still going to watch this, but I am pretty sure my code fell into that 30k character limit issue. Because around the time it started to become an issue, I had added a new library to the mix (and would explain why other programs never had issues, they didn't have near the libraries references).
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: Insanely Long Compile Times w/ an ESP32 - Even With No Code Change
Reply #3 - Jun 3rd, 2024 at 8:07am
Print Post  
Thanks for the feedback and glad the Gcc-E Deep Search is working as expected now.

We will continue to improve the Scons Deep Search option, and if you have any other performance issues don't hesitate to reach out to us.
  
Back to top
IP Logged
 
James IV
Newbies
*
Offline


Posts: 4
Joined: May 13th, 2024
Re: Insanely Long Compile Times w/ an ESP32 - Even With No Code Change
Reply #4 - Jun 15th, 2024 at 6:15pm
Print Post  
Simon@Visual Micro wrote on Jun 3rd, 2024 at 8:07am:
Thanks for the feedback and glad the Gcc-E Deep Search is working as expected now.

We will continue to improve the Scons Deep Search option, and if you have any other performance issues don't hesitate to reach out to us.

Will do, and thank you for the help (sorry for the delay on the response)
  
Back to top
 
IP Logged
 
James IV
Newbies
*
Offline


Posts: 4
Joined: May 13th, 2024
Re: Insanely Long Compile Times w/ an ESP32 - Even With No Code Change
Reply #5 - Sep 7th, 2024 at 1:16am
Print Post  
Reviving an old post, but this issue has appeared to have returned. Was there something made in the last few updates that reverted out the searching logic? 

(I haven't had to produce a build for an ESP32 in sometime, but now that I am, the good old problem is back)
« Last Edit: Sep 7th, 2024 at 1:17am by James IV »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: Insanely Long Compile Times w/ an ESP32 - Even With No Code Change
Reply #6 - Sep 10th, 2024 at 3:02pm
Print Post  
The only changes to the searching logic in recent releases has been to:
1) Ensure INO files are only searched if there are changes to includes
2) Library sources are only scanned at the top level for further includes

Could you attach the verbose build output so we can review and try to replicate and offer any workarounds or solutions?
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint