Repository navigation
Description
Summary
Investigation of every flash and RAM regression from 3.10.3 → master (18669e6f2e) on the memory dashboard, for Blink and APA102 hardware SPI on uno, esp32s3, esp32dev and teensy41. Each sub-issue includes its symbol-level evidence and the linker-map inclusion chain where relevant.
| Sketch | Board | Flash | RAM |
|---|---|---|---|
| Blink | uno | −192 ✅ | −13 ✅ |
| Blink | esp32s3 | +30,249 (+8.1%) | +2,073 |
| Blink | esp32dev | +24,646 (+9.1%) | +2,442 |
| Blink | teensy41 | −12,288 ✅ | −4,704 ✅ |
| APA102 | uno | −110 ✅ | −13 ✅ |
| APA102 | esp32s3 | +47,509 (+13.1%) | +2,273 |
| APA102 | esp32dev | +32,751 (+12.7%) | +2,627 |
| APA102 | teensy41 | −6,144 ✅ | +1,280 |
Uno is below 3.10.3 everywhere (#4789/#4790). All flash regressions are ESP32. Teensy's only regression is APA102 RAM.
Two large lines in the bloat reports are bookkeeping and cancel out, so don't chase them:
- Flash: ~36–48 KB moves between
initArduinoandsetup()/SlimSpiBridgeController. - RAM: ~3.4–4 KB moves between
spi_flash_os_check_yieldandesp_cache_aligned_malloc_internal.
Release order (ranked)
For the next release:
- perf(esp32dev): Wi-Fi probe keeps libnet80211 live (+1.3 KB RAM) despite weak linking #4791 Wi-Fi probe keeps libnet80211 live on esp32dev: 1.3 KB RAM, a small fix in one file.
- perf(teensy): I2S audio-input DMAMEM buffers (1 KB RAM) linked into LED-only sketches #4792 Teensy I2S audio-input buffers in LED sketches: 1 KB RAM, the only remaining Teensy regression.
- perf(esp32): APA102 SPI sketches link the clockless half of the unified FLEX_IO engine (~8-10 KB flash) #4793 APA102 SPI links the clockless half of the unified FLEX_IO engine: ~8–10 KB flash on esp32dev and S3. It is the biggest win, so start it early. It needs a driver-selection check and hardware validation, and must keep the unified-engine rule.
Next tier:
4. #4795 RGBW/RGBWW paths in RGB-only sketches: ~1.5 KB.
5. #4796 S3 ADC calibration and efuse pull-in: ~3.2 KB flash and 0.5 KB RAM. The cause is unknown and needs a trace first.
6. #4797 Scheduler, EngineEvents and coroutine runtime linked unconditionally: ~2.5–3.5 KB flash and ~420 B RAM.
7. #4798 libstdc++ locale static init: ~0.5 KB flash and 256 B RAM.
8. #4799 Per-frame fl::string driver keys and name lookups: 2.8–6 KB.
Post-release:
9. #4800 Slim the channels framework baseline: ~9–11 KB, structural.
10. #4794 Trim the vector ops table: ~0.8 KB. fl::vector is already type-erased; this only removes unused per-type thunks.
#4791–#4793 together recover about 10 KB flash and 2.5 KB RAM on the affected boards. After all of them, ESP32 will still sit about 15–25 KB above 3.10.3, mostly the channels framework. The release notes should call that the deliberate cost of the new driver architecture.
Sub-issues
- perf(esp32dev): Wi-Fi probe keeps libnet80211 live (+1.3 KB RAM) despite weak linking #4791
- perf(teensy): I2S audio-input DMAMEM buffers (1 KB RAM) linked into LED-only sketches #4792
- perf(esp32): APA102 SPI sketches link the clockless half of the unified FLEX_IO engine (~8-10 KB flash) #4793
- perf: RGBW/RGBWW pixel paths linked into RGB-only sketches (~1.5 KB on ESP32) #4795
- perf(esp32s3): trace ADC calibration/efuse pull-in (+3.2 KB flash, +0.5 KB RAM) #4796
- perf: task scheduler, EngineEvents and coroutine runtime linked unconditionally (~2.5-3.5 KB, ~420 B RAM) #4797
- perf(esp32): libstdc++ locale static init linked (~0.5 KB flash, 256 B RAM) #4798
- perf(channels): per-frame fl::string driver keys and name lookups in driver paths (2.8-6 KB) #4799
- perf(channels): slim the channels framework baseline (~9-11 KB flash on ESP32) #4800
- perf(stl): trim vector_element_ops table (drop swap/destroy, shared uninitialized_move_n) ~0.8 KB #4794
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 9, 2026
Progress: esp32dev / esp32s3 pass (2026-10-09)
All measurements use the dashboard build setup (same
.ini, sketch and stub; fbuild 2.5.38). The before column is master18669e6f2e, the after column is master50c99f0210.Merged
esp_netif; the weakesp_wifi_get_modereference had kept net80211 BSS alive.fl::analogReadmoved to its own unity object; it had extracted the ADC.ctorscalibration constructor.unique_lock/lock_guard;std::unique_lockhad pulled in libstdc++ locale init.fl::task::yield_system(); SYSTEM-onlyrun()calls had linked the task Scheduler.Deferred, with analysis on each issue
Out of this pass's scope
Dashboard refresh dispatched: FastLED/dashboard run 37877904479.
test(bloat): claim the #4801 savings in the ESP32-S3 baseline (350151…
perf(channels): make IChannelDriver::canMatch non-virtual (~950 B) (#…
test(bloat): re-base ESP32-S3 budget/baseline for fbuild 2.5.39 accou…
chore(deps): pin fbuild 2.5.39 for the ESP32-S3 QEMU deploy fix (#4813)…
zackees commentedon Oct 9, 2026
Update (2026-10-09)
Landed since the last update
@filtered off atmega8*. It also fixesbash compile --examples A B Csilently dropping A.IChannelDriver::canMatchnon-virtual, about −950 B flash on all four ESP32 sketches. The S3 baseline is claimed at 342,083.adc_hw_calibration.ci/bloat.pynow passes--build-info/--nm/--cppfiltexplicitly. A local sweep of all 11 bloat budgets found identical image sizes; esp32s3, esp32c3, esp32c6, esp32dev and rp2040 needed attributed-RAM re-bases for fbuild#1663's accounting (same ELFs were under budget on 2.5.37), authorized by the maintainer. ci-full: 120/120 green, including both S3 QEMU jobs.Dashboard (master
c97d72154c) vs this pass's start (18669e6f2e)Still open
Rgbw/Rgbwwactivation encapsulated first.zackees commentedon Oct 9, 2026
Update (2026-10-09, later)
Landed
fl::aligned_allocnow honours alignment on bare-metal targets. It also fixes host example discovery dropping(board is not atmega8*)examples; RGBW, RGBWEmulated and AnalogOutput are back in host tests (93 → 96 examples).Rgbw/RgbwwAPI encapsulation that perf: RGBW/RGBWW pixel paths linked into RGB-only sketches (~1.5 KB on ESP32) #4795 depends on.Dashboard (master
66846f1547, run 37985271887):Still open: #4795 (blocked on #4815), #4799 and #4800 (structural channels work).
zackees commentedon Oct 9, 2026
Final update (2026-10-09): all sub-issues closed
Landed in this round
PixelIterator, about −1 KB per RGB-only ESP32 sketch. A byte-exact reference test covers every colour order, mode and placement.Follow-ups split out (post-release)
const char*/enum driver identity API.Dashboard (master
96d42dfbe3, run 38004766076) vs the start of this pass (18669e6f2e):zackees commentedon Oct 10, 2026
All sub-issues closed; follow-up #4822 deferred to post-release by the maintainer. Closing the meta.