I am using Arduino IDE 2.2.1 for an ESP32 project.
There are lots of libraries involved since declared libraries in my code also reference libraries.
When it is in the section of "Detecting libraries used" it can take as much as 10 seconds, perhaps more in resolving a library.
An example of output for one library in Outpu window:
AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0/bin/xtensa-esp32-elf-g++
Alternatives for SPIFFS.h: [SPIFFS@2.0.0]
ResolveLibrary(SPIFFS.h)
- -> candidates: [SPIFFS@2.0.0]*
Another unreasonable delay I find with Arduino IDE 2.2.1 is library updates.
The output shows that a library or library dependency was successfully installed, but notification area stays at that point for quite a while, as if Arduino library manager is not getting informed in a timely matter that the library install completed.
Then there's the issue that when I start first instance of IDE it it seems to take a long time to complete downloading the library index file. I suspect that the index was already downloaded, but Arduino itself still waits.