IDE 2.3.2 very slow compiling

good day to all in this forum,
I am Using IDE 2.3.2 on my Intel I_5 CPU personal computer: the OS is win 10 with 16 GB of RAM and 1 TB SSD. CPU speed is about 3.2 GB/sec.
The system takes about 2 minute ( TWO ) to compile a simple example sketch.
I did apply all the suggestions I found on the web but it is still very slow !
Any help in order for me to overcome the problem please ?
Thanks in advance
Ambro

You did not mention for which board that is. There are a few topics (Search results for '#software:ide-2-x slow' - Arduino Forum) about the subject; I think that most (if not all) relate to non-AVR boards.

Any network drives/storage involved?

Any chance that an anti-virus program might be interfering? You can temporarily disable it and check if it makes a difference.

We never know what you did find and what you did try :wink:

Thanks,
I am usind the ESP32 WROOM 32u board.
I di load the followin examples: Simple wifi web server, wifi_scan, analog in/out serial.
The antivirus was disables.
I almost apply all the available suggested solution find on the web: there are a lot of discussion there ...
Amb

From what I have been able to determine when compiling for non AVR boards a lot more information needs to massaged by the compiler. I have also determined that when compiling a sketch for the first time it also takes longer as it is creating some files that are saved in the sketch folder and then just used the next time the sketch is compiled. I use Linux but assume it as about the same on windoze.

It's not the sketch directory (at least not on my Windows and Linux systems); it's stored in a temporary directory (/tmp on Linux).

I s there any reasonable solution please ?
Is there any different system for compiling /upload the ESP() ?
Thanks

Did you dig through the search that I gave you? You can speed it up a little from what I understand.

Espressif has their own IDE: https://idf.espressif.com/. You can give that a try (I suspect that it's more hardcore programming, never used it).

ESP-32 sketches takes time to compile.
If you compile the same code for the Arduino board it will take less time.

thanks for all the suggestions.
I did apply them but a very negligible improvement is noted.
Additionally: by compiling the second time and with NO MODS it nearly takes the same time !
I confirm that compiling for Arduino uno is pretty faster.
I realized that the IDE can be used for AVR chips and it is unusable for ESP().
That is very bad!
Amb

What I noticed with ESp32 and Arduino IDE is that it recompiles all the code, including all the libraries even if they weren't modified. Thats the reason. Mine takes long time to compile too.

No, with Verbose output during compile, with "no changes" most of the time you should see a lot of

  • Using cached library dependencies
  • Using previously compiled file for both sketch and library files
  • and one Using precompiled core

It will recompile the resulting .ino.cpp every time, but that is not what takes so long. I did some instrumenting a few months ago (with arduino-esp32 v2).

What I see is a bunch of xtensa-gcc.. messages with actual compiling. All the libraries every time. Just press "Compile" button again and again and get the same result

But I am get used to it.

BTW I am on Windows10 if that makes sense.

PS: This particular sketch uses DATE TIME macros so it is ok to recompile THAT code. But why all the others get recompiled I have no idea.

The only "using precompiled" message i see is "Using precompiled core"

I just confirmed with "ESP32 Dev Module" using board platform "esp32" v3.0.2; a bare-bones sketch with #include <WiFi.h> and WiFi.begin("foo", "bar"). On Linux, but I saw the same behavior on Windows previously (just slower overall).

Thank for all the reply,
I do understand that there is NOT an applicable solution to the problem.
I also search all is possible on the WEB but no solution .
At the moment Arduino IDE is not useable for ESP() software developing in my opinion.
Hope to see a real solution to the problem in the near future !
All the best
Amb

I just scrolled the output to the right. Is "-o nul" there for a reason?

I am pretty sure now that it has something to do with Cyrillic characters in the path. I checked .d files in a temp folder and this is what I found inside:

(must be "C:\Users\ֲВячеслав....")

C:\Users\ֲקוסכאג\AppData\Local\Temp\arduino\sketches\5E52C855D96EEA0FECA98993020C8EE1\libraries\RTClib\RTC_DS1307.cpp.o: \
 c:\Users\ֲקוסכאג\Desktop\Arduino\libraries\RTClib\src\RTC_DS1307.cpp \
 c:\Users\ֲקוסכאג\Desktop\Arduino\libraries\RTClib\src\RTClib.h \
 c:\Users\ֲקוסכאג\Desktop\Arduino\libraries\Adafruit_BusIO/Adafruit_I2CDevice.h \

So no wonder that is "up-to-date" check fails leading to full recompiling. Some paths are Ok tho. Looks like the bug in Arduino-IDE or/and tools it uses.

PS: All the .o and .a files do exist in temp folder but get recompiled every time

How to submit a bug report to Arduino IDE developers then?

You can submit an issue on Issues · arduino/arduino-ide · GitHub

I'm reasonably sure that there already is one about non-ascii characters in file path though I could not immediately find it.

These are the currently open ones: Issues · arduino/arduino-ide · GitHub

In order to make all relevant information available to any who are interested in this subject, I'll share a link to @vvb333007's bug report here: