Repository navigation
Description
Goal
Extend tests/measure_esp32s3_opt_ins.py (shipped in PR #2906) to cover the 4 opt-in build flags shipped after #2906:
FASTLED_DISABLE_SPI_CHIPSETS=1(perf(esp32): gate SPI dispatch in Channel::showPixels behind FASTLED_DISABLE_SPI_CHIPSETS #2914)FASTLED_DISABLE_UCS7604=1(perf(esp32): gate UCS7604 clockless cases in Channel::showPixels behind FASTLED_DISABLE_UCS7604 #2921)FASTLED_DISABLE_DYNAMIC_DRIVER=1(perf(channels): gate Channel::resolveDynamicDriver behind FASTLED_DISABLE_DYNAMIC_DRIVER #2927)FASTLED_DISABLE_CHANNEL_EVENTS=1(perf(channels): gate fl::ChannelEvents behind FASTLED_DISABLE_CHANNEL_EVENTS #2932)
Plus a new max_savings config that stacks all 8 opt-ins (Stages 2 + 3 + 4 + the 4 new gates) into one build for the cumulative measurement.
Parent: #2886 — measurement infrastructure extension. No FastLED-runtime change.
Why this matters now
The current measure_esp32s3_opt_ins.py was written before the four new opt-in build flags shipped. Running --config all today measures only 5 configs (baseline + stage2/3/4 + stack). The four newer gates have shipped without measurement; the SLIM doc rows 6/7/8/9 are all 📊 with no validation path.
After this extension, the next iteration can run --config all and post a single comparison table that flips multiple rows from 📊 → ✅ in one shot.
Deliverable
tests/measure_esp32s3_opt_ins.py — add 4 new configs + max_savings
| Config name | build_flags addition | sdkconfig overlay | Source SLIM row |
|---|---|---|---|
baseline |
(none) | (user default) | row 1 |
stage2 |
-DFASTLED_SUPPRESS_ARDUINO_CHIP_DEBUG_REPORT=1 |
(user default) | row 4 |
stage3 |
(none) | + tools/sdkconfig_for_smallest_fastled.defaults |
row 2 |
stage4 |
-DFASTLED_RMT_STATIC_ALLOCATION=1 |
(user default) | row 3 |
stack |
stages 2+3+4 | overlay applied | TL;DR base stack |
disable_spi (new) |
-DFASTLED_DISABLE_SPI_CHIPSETS=1 |
(user default) | row 6 |
disable_ucs7604 (new) |
-DFASTLED_DISABLE_UCS7604=1 |
(user default) | row 7 |
disable_dyndriver (new) |
-DFASTLED_DISABLE_DYNAMIC_DRIVER=1 |
(user default) | row 8 |
disable_events (new) |
-DFASTLED_DISABLE_CHANNEL_EVENTS=1 |
(user default) | row 9 |
max_savings (new) |
all of 2+4+SPI+UCS7604+dyndriver+events | overlay applied | "max-savings stack" |
The max_savings config is the realistic floor — what an aggressive user gets when they stack every gate.
Comparison table column update
The output table currently has columns Config | Label | total_flash | Δ vs baseline | Δ vs previous. Keep those. Add a column SLIM row so the table maps 1:1 onto the priority table when the follow-up doc PR consumes it.
Acceptance
tests/measure_esp32s3_opt_ins.pyknows about the 9 configs above.--config allruns all 9 configs.--config max_savingsruns just the all-stacked config (useful for the headline cumulative number).- The output Markdown table has the new
SLIM rowcolumn. bash lintpasses.- No FastLED runtime change.
Out of scope
- Actually running the measurements. That's a separate follow-up PR that consumes the script's output and updates the SLIM doc rows.
- Changing the comparison-table format beyond the new column. Future iterations can extend.
Related
- Meta: ESP32-S3 Blink bloat reduction (file:line concrete plan) — supersedes #2885 #2886 — parent meta.
- tools(bloat): ship tests/measure_esp32s3_opt_ins.py multi-config audit driver #2906 — original measurement driver this PR extends.
- perf(esp32): gate SPI dispatch in Channel::showPixels behind FASTLED_DISABLE_SPI_CHIPSETS #2914 / perf(esp32): gate UCS7604 clockless cases in Channel::showPixels behind FASTLED_DISABLE_UCS7604 #2921 / perf(channels): gate Channel::resolveDynamicDriver behind FASTLED_DISABLE_DYNAMIC_DRIVER #2927 / perf(channels): gate fl::ChannelEvents behind FASTLED_DISABLE_CHANNEL_EVENTS #2932 — the four opt-in flags this PR adds coverage for.
- docs(esp32): add CONFIG_NEWLIB_NANO_FORMAT=y to Stage 3 sdkconfig overlay (~20-30 KB) #2916 — nano-newlib in Stage 3 overlay (
stage3config already covers).
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
tools(bloat): extend measure_esp32s3_opt_ins.py with 4 new opt-ins + …