extremly slow compiling

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.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #31221

    marek
    Participant

    Hello,

    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?

     

    Best regards,

    Marek

    Attachments:
    You must be logged in to view attached files.
    #31223

    support
    Keymaster

    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.

    #31233

    marek
    Participant

    My licence was renewed, new version of visual GDB was installed. And compilation still took long lime, while CPU is used in few percent.

     

     

     

     

    #31234

    support
    Keymaster

    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?

    #31235

    marek
    Participant

    I have no CMake Build Settings option.

    Going with instruction from here  I have only “Reload Project” no “Reload CMake Project”

     

     

     

    Attachments:
    You must be logged in to view attached files.
    #31237

    support
    Keymaster

    Hi,

    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/#troubleshooting

    #34237

    matstumpf
    Participant

    Hi! I’m facing the same problem.

    Arduino-based ESP32-CAM_AiThinker.

    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.

    • This reply was modified 2 weeks, 6 days ago by  matstumpf.
    Attachments:
    You must be logged in to view attached files.
    #34240

    support
    Keymaster

    Hi,

    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.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.