Skip to content

meta: memory regressions 3.10.3 → master (Blink + APA102, uno/esp32s3/esp32dev/teensy41) #4801

Closed
14 of 14 issues completed

Description

@zackees

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 initArduino and setup()/SlimSpiBridgeController.
  • RAM: ~3.4–4 KB moves between spi_flash_os_check_yield and esp_cache_aligned_malloc_internal.

Release order (ranked)

For the next release:

  1. 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.
  2. 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.
  3. 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

Sub-issues

Sub-issues

14 of 14 Issues completed
Loading 14 sub-issues

Activity

  1. added
    type: regression
    priority: high
    on Oct 9, 2026
  2. zackees commented on Oct 9, 2026

    @zackees
    MemberAuthor

    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 master 18669e6f2e, the after column is master 50c99f0210.

    flash before → after RAM before → after
    esp32dev Blink 295,896 → 292,736 (−3,160) 25,812 → 23,904 (−1,908)
    esp32dev APA102 291,020 → 276,900 (−14,120) 25,276 → 23,120 (−2,156)
    esp32s3 Blink 401,876 → 394,820 (−7,056) 77,936 → 77,200 (−736)
    esp32s3 APA102 409,656 → 394,948 (−14,708) 77,864 → 77,144 (−720)

    Merged

    Deferred, with analysis on each issue

    Out of this pass's scope

    Dashboard refresh dispatched: FastLED/dashboard run 37877904479.

  3. added a commit that references this issue on Oct 9, 2026
  4. zackees commented on Oct 9, 2026

    @zackees
    MemberAuthor

    Update (2026-10-09)

    Landed since the last update

    Dashboard (master c97d72154c) vs this pass's start (18669e6f2e)

    flash RAM
    esp32dev Blink 295,896 → 291,784 (−4,112) 25,812 → 23,904 (−1,908)
    esp32dev APA102 291,020 → 275,940 (−15,080) 25,276 → 23,120 (−2,156)
    esp32s3 Blink 401,876 → 393,812 (−8,064) 77,936 → 77,200 (−736)
    esp32s3 APA102 409,656 → 393,964 (−15,692) 77,864 → 77,144 (−720)

    Still open

  5. zackees commented on Oct 9, 2026

    @zackees
    MemberAuthor

    Update (2026-10-09, later)

    Landed

    Dashboard (master 66846f1547, run 37985271887):

    flash vs 3.10.3 RAM vs 3.10.3
    esp32dev Blink +20.5 KB +534 B
    esp32dev APA102 +17.7 KB +471 B
    esp32s3 Blink +22.2 KB +1,337 B
    esp32s3 APA102 +31.8 KB +1,553 B
    teensy41 Blink −14.3 KB −5,728 B
    teensy41 APA102 −7.2 KB +256 B

    Still open: #4795 (blocked on #4815), #4799 and #4800 (structural channels work).

  6. zackees commented on Oct 9, 2026

    @zackees
    MemberAuthor

    Final update (2026-10-09): all sub-issues closed

    Landed in this round

    Follow-ups split out (post-release)

    Dashboard (master 96d42dfbe3, run 38004766076) vs the start of this pass (18669e6f2e):

    flash RAM
    esp32dev Blink 295,896 → 290,724 (−5,172) 25,812 → 23,896 (−1,916)
    esp32dev APA102 291,020 → 275,100 (−15,920) 25,276 → 23,112 (−2,164)
    esp32s3 Blink 401,876 → 392,724 (−9,152) 77,936 → 77,192 (−744)
    esp32s3 APA102 409,656 → 393,056 (−16,600) 77,864 → 77,136 (−728)
    teensy41 Blink 50,176 → 47,104 (−3,072) 28,288 → 27,264 (−1,024)
    teensy41 APA102 49,152 → 47,104 (−2,048) 28,320 → 27,264 (−1,056)
  7. zackees commented on Oct 10, 2026

    @zackees
    MemberAuthor

    All sub-issues closed; follow-up #4822 deferred to post-release by the maintainer. Closing the meta.

  8. moved this from Triage to Done in FastLED Trackeron Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: regression

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions