-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation speed of ESP8266 core 3.0.0 #8069
Comments
I have the same problem. |
Same problem. Arduino IDE 1.8.13 |
Can someone working with windows and the git version confirm ? or infirm ? I am using linux and the git version without this issue. First compilattion lasts some times, the next one is around 10-15 secs. |
On windows with arduino 1.8.13 I see this: You find it in c:/users/%user%/AppData/Local/Temp/arduino_build_xxxxxx/libraries In my case I used this libraries: Hope this helps |
It's some time ago and I don't know whether it is related to this issue. When I moved to the githead using the new compiler I had a similar issue. I will search for the PR/issue where this is described and then edit this comment. |
@hreintke : How did you manage to use external make with arduino IDE? |
Using the current release V 3.0.0 with Arduino IDE 1.8.13 on Windows 10 (20H2) I can confirm the compiling issue. The compiling process takes a longer time (quite noticable) than it did before with V 2.7.4 and the following compilings also do so. Furthermore, loading files from SPIFFS (I know about depreaction) seems to be much(!) slower than it was before with V 2.7.4. |
@fsommer1968 I do have Arduino IDE installed, so if I can be of help testing just let me know. |
May I mention https://github.com/plerup/makeEspArduino |
Can someone please enable full logs in the IDE (File->Preferences->Show verbose output during, check compilation and upload boxes) and then do an initial compile, capture and post the logs, then do a minor change to the sketch.ino file and rebuild and capture the logs again? For extra credit, if you could do the same w/2.7.4 which seems to run faster for you, that would be great. We would then be able to compare the commands run in 2.7.4 vs. 3.0.0 and see if a) there are more recompiles done, or b) the same number of gcc instances are run, but each one takes longer. |
I'm on lunch so no time to dig super deep, but there does seem to be a dramatic difference in G++ calls between 2.7.4 and 3.0.0 on the 2nd round:
|
Likely culprits would be something writing to the |
I've been unable to repro this under Linux. @d-a-v or @devyte , have you seen it on your boxes. Symptoms in the log are it's recompiling every library, every time, and not using the cached So, my thinking is that this is a Windows-only thing and that @hreintke 's point about the |
It's definitely recompiling every single library every time through (you can see that from the console output during the compile/linking), however, the more disturbing thing to me is that the compile time is 2 to 3 times longer than 2.7.4's first build. I could see maybe a few percent difference but not 200%+ of difference. |
This is not reproducible on linux, but it is on windows.
(or)
And the build became very short in time, as before with windows, as now with linux. That's not really on us, but on GCC changing file format, Arduino not yet interpreting the changes. |
Looks like this is just a bug in the Arduino IDE, then. Good debugging, @d-a-v . I see two possible solutions:
|
Fixes esp8266#8069 GCC 10.3 has a patch to stop escaping the initial : in Windows paths which is causing Arduino and other tools to fail dependency checks and rebuild everything on every compile.
After a quick test using the alpha release 0.0.2 and windows10, this issue is fixed thanks to #8103. |
Fixes #8069 GCC 10.3 has a patch to stop escaping the initial : in Windows paths which is causing Arduino and other tools to fail dependency checks and rebuild everything on every compile.
Platform
Settings in IDE
Problem Description
I compared the compilation speed
3.0.0 (gcc-xtensa v10.2) - first compilation 10 minutes, second compilation 10 minutes
2.7.4 (gcc-xtensa v4.8) - first compilation 5 minutes, second compilation less than 1 minute
The text was updated successfully, but these errors were encountered: