Does it use multiple CPU threads?

I had a slower PC. SSD disk, 8GB RAM and CPU 3.2GHz (only 2 threads).
I bought a better PC, NVME SSD disk, 16GB RAM, CPU 3.7GHz (6+4 threads).
I expected Arduino IDE2 to be many times faster, mainly due to the increased CPU threads, and there is not much improvement. The CPU barely runs at 11%, so I probably spent money on a better PC for nothing, because Arduino IDE2 apparently uses only 1 CPU thread? Is there no software improvement that will use the PC's potential better?
I don't want to switch to PlatformiO. Currently, compiling a large project takes only 4 minutes instead of 5 minutes, and I expected a much greater improvement.

Windoze?

Try Linux of some kind, like Ubuntu or Mint.

1 Like

I don't know how much help I can get with Linux. Anyway, the Arduino IDE 2 software should use all available CPU threads and not just one, which I think is happening.

I use Makefile for building and I have no problem to use 24 threads on my computer. (I could use even more, but 24 is what my CPU have. More will go paralel and will use normal multitasking.) (And I use Linux)

Here is what I actually use:

I use Linux Mint Cinnamon several versions on different machines. All of the IDE’s appear to use all of the cores. Going to a faster machine did not make much difference for me but then I figured out it was the solid state drive that was the limiting factor. They all have the Solid State Drives, the inexpensive ones.

I agree, it should do that on any O/S.

In my experience, which is limited to Arduino IDE 1.x, Linux is generally much more efficient. You could probably have got the same improvement, if not more, by upgrading your O/S instead of your hardware.

arduino-ide v2 uses arduino-cli as the back-end to actually do the builds. By enabling Show verbose output during compile in the Settings, you can see the build comprises several stages. Only some are multi-threaded. The latest version of cli, v1.3, actually adds one more (a big one), but there has not been an ide release that uses that latest cli. Here's a recent thread with a chart and graphs to show the difference.

There is progress on that front:

A tester build is available if you want to give it a try. Instructions for obtaining it here:

https://github.com/arduino/arduino-ide/blob/main/docs/contributor-guide/beta-testing.md#testing-pull-requests