# Slow compilation

**URL:** <https://forum.arduino.cc/t/slow-compilation/1440350>\
**Category:** IDE 2.x\
**Created:** [April 16, 2026, 11:03am UTC](https://forum.arduino.cc/t/slow-compilation/1440350 "2026-04-16T11:03:42Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![rbettes](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/rbettes/32/1186280_2.png) [@rbettes](https://forum.arduino.cc/u/rbettes)\
**Post date:** [April 17, 2026, 4:28pm UTC](https://forum.arduino.cc/t/slow-compilation/1440350/21 "2026-04-17T16:28:35Z")

</div>

[quote="Deva\_Rishi, post:19, topic:1440350"]  
s  
Hi I am getting the verbose output . I assume it is writing it to a file somewhere . I was trying to find the file without success .

---

<div class="post-metadata">

**Author:** ![rbettes](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/rbettes/32/1186280_2.png) [@rbettes](https://forum.arduino.cc/u/rbettes)\
**Post date:** [April 17, 2026, 4:31pm UTC](https://forum.arduino.cc/t/slow-compilation/1440350/22 "2026-04-17T16:31:45Z")

</div>

Hi I can see it being a lot slower when I have wifi include files

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [April 17, 2026, 4:33pm UTC](https://forum.arduino.cc/t/slow-compilation/1440350/23 "2026-04-17T16:33:20Z")

</div>

Verbose output is not written to file. You can copy and paste from the output to a text editor to make analysis easier.

If you want somebody here to have a look at it you can copy and paste the output here (using code tags).

If you post the complete code we can compile it as well and let you know how long a compilation takes on our system(s).

---

<div class="post-metadata">

**Author:** ![rbettes](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/rbettes/32/1186280_2.png) [@rbettes](https://forum.arduino.cc/u/rbettes)\
**Post date:** [April 17, 2026, 4:33pm UTC](https://forum.arduino.cc/t/slow-compilation/1440350/24 "2026-04-17T16:33:58Z")

</div>

Hi I am not sure if my compiler is using cashed files on the second run . Is there any way to check ? I am not sure if there is an option choice i must select ?

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [April 17, 2026, 4:39pm UTC](https://forum.arduino.cc/t/slow-compilation/1440350/25 "2026-04-17T16:39:06Z")

</div>

On a Windows system you can find the cache in

```plaintext
C:\Users\yourUsername\AppData\Local\arduino

```

There are two directories; you can delete both.  
Next compile.  
After a first compile you should see the directories recreated and the cache of your project is in a subdirectory.  
Note timestamps; compile again and check which timestamps (e.g. for libraries) have changed. It should only be the ino.cpp file.

---

<div class="post-metadata">

**Author:** ![Dave\_Lowther](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dave_lowther/32/1092885_2.png) [@Dave\_Lowther](https://forum.arduino.cc/u/Dave_Lowther)\
**Post date:** [April 17, 2026, 5:01pm UTC](https://forum.arduino.cc/t/slow-compilation/1440350/26 "2026-04-17T17:01:27Z")

</div>

> [@rbettes](#):
>
> Hi I am trying to see if it just my situation or this is a common problem

Something you could compare with:  
I'm running Win 11 on a 15 year old MacBook (8GB RAM / i5 2.9 GHz) and using IDE 1.8.13. Compiling the code from [https://randomnerdtutorials.com/esp32-access-point-ap-web-server/](https://randomnerdtutorials.com/esp32-access-point-ap-web-server/) took 1 minute 29 seconds. May have had some build files cached from a previous ESP32 build. Compiling a second time with no changes took 17 seconds

---

<div class="post-metadata">

**Author:** ![oldcurmudgeon](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/oldcurmudgeon/32/1280882_2.png) [@oldcurmudgeon](https://forum.arduino.cc/u/oldcurmudgeon)\
**Post date:** [April 17, 2026, 5:04pm UTC](https://forum.arduino.cc/t/slow-compilation/1440350/27 "2026-04-17T17:04:33Z")

</div>

> [@Deva\_Rishi](#):
>
> I have had reports that compilations on Linux machines are significantly faster !

I have a dual boot machine and find that compilation on Linux (Ubuntu) is about twice as fast. I rarely use the Windows 11 side.

**EDIT:**  
Found a post I made a while ago. Difference is more then twice.

> [@Insane upload time for ESP32 Devkit 1](https://forum.arduino.cc/t/insane-upload-time-for-esp32-devkit-1/1250305/15):
>
> OK, I went to my dual boot machine and tried my ~700 line program there. Intel I3-10100 16MB SSD Windows 11 3 min 33 sec first compile, 43 sec for second Ubuntu 22.04 51 sec first compile, 10 sec for second. It does appear that Windows sucks more than I thought. In both cases performance monitor shows multiple cores were used.

---

<div class="post-metadata">

**Author:** ![build\_1971](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/build_1971/32/689930_2.png) [@build\_1971](https://forum.arduino.cc/u/build_1971)\
**Post date:** [April 17, 2026, 5:04pm UTC](https://forum.arduino.cc/t/slow-compilation/1440350/28 "2026-04-17T17:04:48Z")

</div>

Your virus scanner/firewall may also slow down the compilation...

---

<div class="post-metadata">

**Author:** ![kenb4](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kenb4](https://forum.arduino.cc/u/kenb4)\
**Post date:** [April 17, 2026, 9:17pm UTC](https://forum.arduino.cc/t/slow-compilation/1440350/29 "2026-04-17T21:17:40Z")

</div>

It might be helpful to compare a completely empty sketch with one adding just `#include <WiFi.h>` and `WiFi.begin("", "")`

If you enable verbose output, you should see the names of several stages, along with unnamed first and last stages, named "prepare" and "final" below. These are the times for a moderately complex sketch on a low-end quad-core with dual boot. (I patched the back-end `cli` to print these timings.)

| | Linux | | Win11 | |
| --- | --- | --- | --- | --- |
| | clean | cached | clean | cached |
| prepare | 0.612 | 0.867 | 2.880 | 6.045 |
| detecting libraries | 34.633 | 4.947 | 133.938 | 19.014 |
| function prototypes | 0.760 | 0.754 | 2.689 | 2.689 |
| compiling sketch | 5.035 | 1.339 | 12.976 | 3.189 |
| compiling libraries | 21.529 | 0.140 | 62.677 | 0.397 |
| compiling core | 4.569 | 0.153 | 17.925 | 3.759 |
| linking | 5.393 | 5.074 | 6.933 | 6.804 |
| final | 0.501 | 0.494 | 1.245 | 1.153 |
| | -------- | -------- | -------- | -------- |
| Total, seconds | 73.032 | 13.768 | 241.265 | 43.05 |

> [@rbettes](#):
>
> I am not sure if my compiler is using cashed files on the second run

In the verbose output, it will say "`Using previously compiled file`" for both library sources and any separate source files in your sketch. The `.ino` is always converted to `.ino.cpp` and recompiled. For the core, it will say "`Using precompiled core`". That's how the times go way down in "cached" columns in the table above.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [October 14, 2026, 9:17pm UTC](https://forum.arduino.cc/t/slow-compilation/1440350/30 "2026-10-14T21:17:58Z")

</div>

Closed on October 14, 2026, 9:17pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

[Previous page](https://forum.arduino.cc/t/slow-compilation/1440350.md?page=1)
