Repository navigation
Description
Goal
Run tests/measure_esp32s3_opt_ins.py --config all end-to-end (10 configs × ~3-4 min each = ~35-40 min total). Capture the measured numbers for each config and ship a SLIM doc flip PR that updates rows 6/7/8/9 of docs/SLIM_ESP32S3.md from 📊 → ✅ with the measured savings inlined, plus a new "max-savings" section showing the cumulative number when every gate is enabled.
Parent: #2886 — first end-to-end validation run of the 4 post-#2906 opt-in build flags.
Why this matters
Four opt-in build flags have shipped without measurement:
FASTLED_DISABLE_SPI_CHIPSETS=1(perf(esp32): gate SPI dispatch in Channel::showPixels behind FASTLED_DISABLE_SPI_CHIPSETS #2914) — projected ~1.0-1.2 KBFASTLED_DISABLE_UCS7604=1(perf(esp32): gate UCS7604 clockless cases in Channel::showPixels behind FASTLED_DISABLE_UCS7604 #2921) — projected ~400-600 BFASTLED_DISABLE_DYNAMIC_DRIVER=1(perf(channels): gate Channel::resolveDynamicDriver behind FASTLED_DISABLE_DYNAMIC_DRIVER #2927) — projected ~400-900 BFASTLED_DISABLE_CHANNEL_EVENTS=1(perf(channels): gate fl::ChannelEvents behind FASTLED_DISABLE_CHANNEL_EVENTS #2932) — projected ~1-2 KB
Plus two stages that have a script-runnable measurement path:
- Stage 2 (
FASTLED_SUPPRESS_ARDUINO_CHIP_DEBUG_REPORT=1, perf(esp32): suppress Arduino-ESP32 boot banner via build-flag shim (#2886 Stage 2) #2894) — projected ~3 KB - Stage 3 (sdkconfig overlay including nano-newlib docs(esp32): add CONFIG_NEWLIB_NANO_FORMAT=y to Stage 3 sdkconfig overlay (~20-30 KB) #2916) — projected ~30-45 KB
Plus the max_savings stack — the headline cumulative number.
The SLIM doc currently marks rows 2/4/6/7/8/9 as 📊 (projected). After this PR, rows with empirically validated savings flip to ✅ with the measured number inlined.
Deliverable
Step 1 — Run the measurement
uv run python tests/measure_esp32s3_opt_ins.py --config all --out .claude/symbolaudit/measured_opt_ins.md --keep-platformio-ini-backupOutput: a Markdown comparison table with one row per (baseline, stage2, stage3, stage4, stack, disable_spi, disable_ucs7604, disable_dyndriver, disable_events, max_savings). Each row has total_flash, Δ vs baseline, Δ vs previous, and the SLIM row mapping.
Expected runtime: ~35-40 minutes for 10 builds.
Step 2 — Update the SLIM doc
For each row in the table that has a slim_row mapping (rows 2/3/4/6/7/8/9), update the corresponding priority-table row in docs/SLIM_ESP32S3.md:
- Flip the Status column from 📊 → ✅.
- Inline the measured saving (e.g. "−1,150 B measured (vs baseline 339,962 B)") in the Savings column.
Add a new "Max-savings stack measured" callout below the priority table:
When every opt-in flag is enabled (Stages 2 + 3 + 4 + #2914 + #2921 + #2927 + #2932), measured total_flash is XXX,XXX B (−YY,YYY B / −ZZ.Z% vs the pre-Stage-1 baseline of 388,380 B).
Step 3 — Post the comparison table to #2886
Copy the script's output table into a comment on #2886 with measurement provenance (master SHA, toolchain, date).
Acceptance
tests/measure_esp32s3_opt_ins.py --config allruns end-to-end without errors.docs/SLIM_ESP32S3.mdrows 2/3/4/6/7/8/9 flip 📊 → ✅ with measured numbers.- The doc's "Roadmap" / "Stage 6" section gains a Max-savings stack callout.
- The script's comparison table is posted to Meta: ESP32-S3 Blink bloat reduction (file:line concrete plan) — supersedes #2885 #2886 as a comment.
bash lint --cpppasses.
Out of scope
- Ratcheting
tests/data/esp32s3_bloat_baseline.txt. The baseline is the DEFAULT-flag measurement; opt-in flags don't move it. - Adding any new opt-in flags. This PR validates the existing ones.
Related
- Meta: ESP32-S3 Blink bloat reduction (file:line concrete plan) — supersedes #2885 #2886 — parent meta + audit cycle.
- tools(bloat): ship tests/measure_esp32s3_opt_ins.py multi-config audit driver #2906 / tools(bloat): extend measure_esp32s3_opt_ins.py with 4 new opt-ins + max_savings #2934 — the measurement driver this PR runs.
- 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 4 opt-in flags being measured.
- docs(esp32): ship tools/sdkconfig_for_smallest_fastled.defaults overlay (#2886 Stage 3) #2896 / docs(esp32): add CONFIG_NEWLIB_NANO_FORMAT=y to Stage 3 sdkconfig overlay (~20-30 KB) #2916 — Stage 3 overlay + nano-newlib extension.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(bloat): make measure_esp32s3_opt_ins.py work on Windows (#2936)
feat(bloat): capture per-config build logs in measure_esp32s3_opt_ins…
fix(bloat): force ELF delete before each measure-opt-ins compile (#2941)
docs(esp32): flip SLIM rows 2/3/7/8/9 to ✅ with measured numbers (Fas…