Sysprogs forums › Forums › VisualGDB › extremly slow compiling
This topic contains 7 replies, has 3 voices, and was last updated by support 2 weeks, 6 days ago.
August 29, 2021 at 14:12 #31221
I had a problem with compilation, it was slow. After searching for solution and no idea what I can do. I decide to uninstall everything (Visual Studio, Visual GDB).
Then I install all tools again, and during compilation, the CPU usage can drop to 2.2%! It’s extremely slow. A basic project need 7min to compile
I work with ESP32. What can I do to speed it up?
MarekAugust 29, 2021 at 17:54 #31223
According to our records, your support has expired a while ago. Please kindly renew it via this page and try installing the latest VisualGDB 5.6 Beta 4. If the problem persists, please let us know and we will help you get it working.August 31, 2021 at 07:11 #31233
My licence was renewed, new version of visual GDB was installed. And compilation still took long lime, while CPU is used in few percent.August 31, 2021 at 09:12 #31234
Thanks for renewing your license. The slow build might come from the GNU Make tool used by the ESP32 projects. Please make sure your project uses CMake and Ninja, and not the legacy GNU Make. You can recheck it via VisualGDB Project Properties -> CMake Build Settings.
If this doesn’t help, please try exporting the configuration and build command lines from VisualGDB to batch files as shown here. Does running them manually also result in a slow build?August 31, 2021 at 11:11 #31235August 31, 2021 at 11:14 #31237
This is an Arduino-based project and not an ESP-IDF-based one. Arduino projects use the Arduino build system that can be considerably slower than CMake+Ninja.
Either way, you can try building the project outside VisualGDB as shown here: https://visualgdb.com/documentation/projects/arduino/#troubleshootingMay 13, 2023 at 05:20 #34237
Hi! I’m facing the same problem.
I have a Core i9-12900KS, 64gb ram ddr5, ssd 7000mb+, w11, so it should not be slow, but inside Visual Studio it takes about 1:30-2min to compile my sketch.
Using the “Dump Command Line to Batch File” .bat took 16 seconds.
I copied the command on the VisualGDB output and run it directly on arduino-builder.exe cmd (C:\Users\mats-i9KS\AppData\Local\VisualGDB\Arduino), and it takes less than 15s.
I also tried to open the sketch on Arduino IDE and it also take about 15s.
I tried to add -jobs 24 but still the same, my processor stays in about 5% of use, tried to disable Microsoft Antivirus and no luck.
May 13, 2023 at 09:36 #34240
- This reply was modified 2 weeks, 6 days ago by matstumpf.
Does the build produce a lot of output, particularly very long lines? If yes, could you please attach the raw output (from running the .bat file with output redirection)?
Also, could you double-check that Visual Studio doesn’t show any errors about the VisualGDBNative module when you open the project for the first time? It implements a few optimizations, namely a fast regex parser used for build message translation.
You must be logged in to reply to this topic.