Skip to content

Unexpected bin filesize increase (+300kB) after core upgrade #1367

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

Closed
ghost opened this issue Apr 29, 2018 · 4 comments
Closed

Unexpected bin filesize increase (+300kB) after core upgrade #1367

ghost opened this issue Apr 29, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 29, 2018

Hardware:

Board: ESP32 Lolin Lite
Core Installation/update date: 16/apr/2018
IDE name: Arduino IDE 1.8.5
Flash Frequency: 80Mhz
Upload Speed: 256000

Description:

Have been running a large sketch on Arduino ESP32 core, dated 2017-12-19. Output bin filesize: 866 kB
Upgraded Arduino IDE to use Arduino ESP32 core, dated 2018-04-16. Output bin filesize: 1169 kB
Without changing a single line within the sketch code, bin filesize has increased 303 kB (!)
Was this expected due to a newer SDK or something?

@reaper7
Copy link
Contributor

reaper7 commented May 2, 2018

You have to accept it...

similar:
#1194
#1282

#1302

@CRprog
Copy link

CRprog commented May 3, 2018

Board: ESP32 DoIt V1
Core Installation/update date: 16/Apr/2018 (Version used for comparing: Dez/2018)
IDE name: Arduino IDE 1.9.0 beta 44

I have so far no Problems with the .bin-size-increase .. but I'm interested. For what are these many bytes used for? Code optimization, speedups or similar?
My tests:
“BareMinimum.ino” is growing from 135724 Bytes (10%) to 159060 Bytes (12%).

And some Code from me, using the following parts ….
#include <WiFi.h> #include <FS.h> #include <AsyncTCP.h> #include <ESPAsyncWebServer.h>
#include <ESPmDNS.h> #include <SPIFFS.h> #include <OneWire.h>
... is growing 557kb -> 703kb +146kb ! ... although without any BLE-Stuff.

@lbernstone
Copy link
Contributor

lbernstone commented May 4, 2018

The size of the esp-idf libraries has gone up. I'm guessing that is the root cause here. Please close the issue if you have recognized that this is just how it is...

@ghost
Copy link
Author

ghost commented May 4, 2018

Despite the fact were not using BLE...

I still guess that lots of new (but unreferenced) code is now included by design. I think I've seen similar issues on the ESP8266 project and those were fixed later on.

The exact same source code builds into almost twice the size compared between ESP8266 and ESP32.

But yes, looks like we have to live with it.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants