Repository navigation
Description
Goal
Ship docs/SLIM_ESP32S3.md — a user-facing reference page that consolidates every release-build flash-saver FastLED ships into a single table users can copy from.
No code change. Documentation only. Projected savings: 0 KB direct; the value is in making the existing knobs discoverable to end users who otherwise have to grep across PRs and meta-issues to find them.
Parent: #2886 — Stage 0 of the multi-stage bloat-reduction plan.
Why this is the next stage
Stage 3 (#2896) already added a "Release-build flash savers (in order of impact)" table to agents/docs/binary-size-analysis.md, but that file is an agent-facing doc — users don't look there. Stage 0's docs/SLIM_ESP32S3.md is the user-facing counterpart. Every Stage 1+ entry now has a stable home it can point at without going to a wiki / PR description.
Deliverable
Path: docs/SLIM_ESP32S3.md
Structure:
- Goal & baseline — short paragraph: pre-2886 NEOPIXEL Blink baseline (388,380 B flash), target (~280,000 B / -28 %), how to measure (
bash bloat esp32s3 --top 25). - The single biggest lever —
FASTLED_LOG_VERBOSITY=0(Stage 1, perf(log): default FASTLED_LOG_VERBOSITY=0 in release builds (#2886 Stage 1) #2890). Now the release default; explain how to restore. ~55 KB. - Per-knob table with three columns:
Knob|How to enable|Savings. - Per-stage detail sections — one section per shipped stage, with: what it does, the exact define / sdkconfig line, where it lives in the FastLED tree, and a link to the PR + meta-issue.
- Optional / situational knobs —
CONFIG_BT_ENABLED=n,FASTLED_RMT_STATIC_ALLOCATION=1— with the caveat that each is project-dependent. - Measuring your build — pointer to
bash bloat esp32s3andagents/docs/binary-size-analysis.mdfor the tool details. - Roadmap — short list of Stages still in progress (4, 5, 6) with projection-vs-measured language.
Sources to consolidate (already documented elsewhere in the tree, just not in one place):
src/fl/log/log.h:66-92— Stage 1 mechanism (FASTLED_LOG_VERBOSITY NDEBUG default).src/extras/suppress_arduino_chip_debug_report.cpp.hpp— Stage 2 mechanism (build-flag-gated weak override).tools/sdkconfig_for_smallest_fastled.defaults— Stage 3 mechanism (IDF overlay).agents/docs/binary-size-analysis.md— agent-facing reference, already linked from the SLIM doc.src/platforms/esp/32/drivers/rmt/rmt_5/—FASTLED_RMT_STATIC_ALLOCATIONopt-in (feat(rmt5): FASTLED_RMT_STATIC_ALLOCATION opt-in macro (#2773 item 2.5 Level A) #2846, pre-existing).
Honest projection language
Stages 1+2+3 are projected savings (the meta's top-25 attribution maps to each line, but a fresh end-to-end bash bloat esp32s3 against post-Stage-3 master hasn't been published yet). Mark numbers as either:
- ✅ Measured (with the report SHA),
- 📊 Projected (from Meta: ESP32-S3 Blink bloat reduction (file:line concrete plan) — supersedes #2885 #2886 top-25 attribution).
When Stage 6 ships the regression-gate run, the doc gets a follow-up PR that flips projected to measured against the recorded baseline.
Acceptance
docs/SLIM_ESP32S3.mdexists.- Every shipped stage (1, 2, 3) has its define/file/PR cited.
- The "Per-knob table" is in priority order (impact descending).
- The savings column distinguishes ✅ Measured from 📊 Projected.
- Cross-references from
agents/docs/binary-size-analysis.mdtodocs/SLIM_ESP32S3.mdare added. - No code changes; lint passes.
Out of scope
- The Stage 6 regression-gate script (
tests/test_esp32s3_bloat_regression.sh). - Re-measuring
bash bloat esp32s3against post-Stage-3 master — that's a follow-up PR once the Stage 6 gate is wired. - Updating per-stage projections after a fresh measurement — same follow-up PR.
Related
- Meta: ESP32-S3 Blink bloat reduction (file:line concrete plan) — supersedes #2885 #2886 — parent meta tracking the multi-stage bloat reduction (Stage 0 of 6).
- perf(log): default FASTLED_LOG_VERBOSITY=0 in release builds (#2886 Stage 1) #2890 — Stage 1 (FASTLED_LOG_VERBOSITY default flip).
- perf(esp32): suppress Arduino-ESP32 boot banner via build-flag shim (#2886 Stage 2) #2894 — Stage 2 (Arduino-ESP32 boot-banner suppression shim).
- docs(esp32): ship tools/sdkconfig_for_smallest_fastled.defaults overlay (#2886 Stage 3) #2896 — Stage 3 (sdkconfig overlay).
agents/docs/binary-size-analysis.md— agent-facing reference this doc cross-links.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
docs(esp32): ship docs/SLIM_ESP32S3.md user-facing reference (#2886 S…