Downloading and installing the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By krzychb
#46549 Here are also results of similar check for Eclipse Arduino Plugin V3.

Libraries I had to install (other were out of box):
- Time - https://github.com/PaulStoffregen/Time
- SSD1306Ascii - https://github.com/greiman/SSD1306Ascii

Results are as follows::
- Complete build: 33s
- Recompile w/o any changes: 1s
- Recompile w/ main sketch changed 5s

The downside of using Arduino Plugin V3 is that it does not support OTA uploads yet.
The issue report is here.

Krzysztof
User avatar
By gerardwr
#46551
krzychb wrote:Results are as follows::
- Complete build: 19s
- Recompile w/o any changes: 3s
- Recompile w/ main sketch changed 5s


I'm (positively) shocked!

So, PlatformIO does not suffer from the "check libraries" slow-down that Arduino 1.6.8 does, as the recompile is FAST. In Arduino 1.6.8 both the "Recompile w/o any changes" and the "Recompile w/ main sketch changed" runs for 45 secs here.

Shutting down Arduino now, and having a look at installing PlatformIO :-)

Many thanks for taking the time to gather the required libs and compile my sketch in PlatformIO.

Once I get result I'll report back here.
User avatar
By gerardwr
#46559 @krzychb

Hello Krzysztof,

I Installed PlatformIO, that was simple indeed :-)

Had to puzzle how to add my Time and SSD1306Ascii libraries. In the end I just added to platform.ini : lib_dir=../libraries. Then my sketch compiled OK.

My results are as follows::
- Complete build: 27s
- Recompile w/ main sketch changed 5s

Compared to Arduino 1.6.5 compile times : 45s and 5s
Compared to Arduino 1.6.8 compile times : 45s and 45s

So, PlatformIO does a complete build in 50% of the Arduino 1.6.5/1.6.8 compile time, that's awesome. The recompile time of PlatformIO is similar to Arduino 1.6.5. compile time, but is 9 times faster than Arduino 1.6.8 recompile time.

Now I have to choose : Continue with Arduino 1.6.5 IDE that I have been using for 10+ years and am accustomed to, OR switch to PlatformIO that's full new to me.
User avatar
By gerardwr
#46561
krzychb wrote:Here are also results of similar check for Eclipse Arduino Plugin V3.

Results are as follows::
- Complete build: 33s
- Recompile w/o any changes: 1s
- Recompile w/ main sketch changed 5s


So, compile time for a Complete Build is longer than using PlatformIO, and Recompile after changes is similar.

Considering this, and the fact that the EclipsArduino setup forces to me install an outdate Java (6SE) I not really tempted to try this.

Saves me some time :-)

Really interesting how compile/link times of the various environments can vary.