Skip to content

Stage 0: Ship docs/SLIM_ESP32S3.md user-facing reference (#2886) #2897

Closed

Description

@zackees

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:

  1. 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).
  2. 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.
  3. Per-knob table with three columns: Knob | How to enable | Savings.
  4. 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.
  5. Optional / situational knobs — CONFIG_BT_ENABLED=n, FASTLED_RMT_STATIC_ALLOCATION=1 — with the caveat that each is project-dependent.
  6. Measuring your build — pointer to bash bloat esp32s3 and agents/docs/binary-size-analysis.md for the tool details.
  7. 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_ALLOCATION opt-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:

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

  1. docs/SLIM_ESP32S3.md exists.
  2. Every shipped stage (1, 2, 3) has its define/file/PR cited.
  3. The "Per-knob table" is in priority order (impact descending).
  4. The savings column distinguishes ✅ Measured from 📊 Projected.
  5. Cross-references from agents/docs/binary-size-analysis.md to docs/SLIM_ESP32S3.md are added.
  6. No code changes; lint passes.

Out of scope

  • The Stage 6 regression-gate script (tests/test_esp32s3_bloat_regression.sh).
  • Re-measuring bash bloat esp32s3 against 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

🤖 Generated with Claude Code

Activity

  1. added a commit that references this issue on Jun 7, 2026
    a8c8c30
  2. moved this from Triage to Done in FastLED Trackeron Jun 7, 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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions