You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Wifi in my code that is 100% unchanged, I lose 57KB of memory between 50d1429 2019/05/01 49b7664 today
This is bad, because my code does not work anymore with 57KB missing.
I did a bisect and saw there were several things that took RAM before my code gets to do anything. I bisected to the first one, but is at least one more bad CL. The one shown here takes 10KB despite using PSRAM (which the original tree isn't even using, so that's 14KB lost, but I don't care about losing PSRAM given how much I have)
The 2nd CL (or there may be more) loses a whopping 47KB (!). I'm not just being pendantic, I did a git pull on my esp32 hardware tree, and my code stopped working. 2H and a git bisect later, found that it was this code's fault.
I understand that improvements can take RAM, but 10KB is a lot, 57KB is beyond a lot given how little contiguous RAM is actually usable on the chip.
Git bisect result: 390da0d from @me-no-dev
Changes in 1 year's worth of esp32-arduino changes:
before wifi init: 273016 bytes total to 233372 bytes total => 39644 lost
after wifi init: 217700 bytes total to 160360 bytes total => 57340 lost
@atanisoft yeah, that's what @me-no-dev told me on gitter.
Still, a 55KB growth (almost 1/3rd of the mere 160KB that are available for static arrays) is a pretty terrible growth for arduino-esp32 if you use wifi, but he said it wasn't practical to make ESP32 support more than one wifi stack in the arduino environment (like is available for esp8266), and indeed to switch to esp32-idf to be able to turn off the bloat I don't need.
In the short time I did a git checkout 595c95f231ad746155a9b4a99ed4f1396cd481a5 in the arduino-esp32 checkout, and I'm back to pre-bloat and got my memory back.
Given what he said, this is not going to get fixed, so I'll close it.
When using Wifi in my code that is 100% unchanged, I lose 57KB of memory between
50d1429 2019/05/01
49b7664 today
This is bad, because my code does not work anymore with 57KB missing.
I did a bisect and saw there were several things that took RAM before my code gets to do anything. I bisected to the first one, but is at least one more bad CL. The one shown here takes 10KB despite using PSRAM (which the original tree isn't even using, so that's 14KB lost, but I don't care about losing PSRAM given how much I have)
The 2nd CL (or there may be more) loses a whopping 47KB (!). I'm not just being pendantic, I did a git pull on my esp32 hardware tree, and my code stopped working. 2H and a git bisect later, found that it was this code's fault.
I understand that improvements can take RAM, but 10KB is a lot, 57KB is beyond a lot given how little contiguous RAM is actually usable on the chip.
Git bisect result: 390da0d from @me-no-dev
Changes in 1 year's worth of esp32-arduino changes:
before wifi init: 273016 bytes total to 233372 bytes total => 39644 lost
after wifi init: 217700 bytes total to 160360 bytes total => 57340 lost
Code if it matters:
https://github.com/marcmerlin/NeoMatrix-FastLED-IR
Here is the bisect log showing that things get worse later, but I only bisected to the first hit:
The text was updated successfully, but these errors were encountered: