Repository navigation
Description
Superseded by #4760 at the maintainer’s request. The published Blink comparisons below mixed Serial-enabled and no-Serial sketches. Treat them as historical measurements, not the corrected library baseline. New measurements and unchecked platform checklists belong to #4760. Prior landed optimizations and original child relationships remain intact.
Context
This is the meta issue for ten platform sub-issues. The children own platform implementation and validation; this parent owns shared evidence, sequencing, the complete scorecard and final acceptance.
We must reduce the remaining default flash and RAM usage. The initial dead-weight fixes improved master, but closing #4728's sweep does not resolve the substantial remaining growth versus 3.10.3. Feature and architecture costs still need optimization; classifying growth as expected is not a memory reduction.
Source: fresh three-version measurements.
All cells are flash / RAM in bytes, measured with bash compile, fbuild 2.5.37, the same current tooling and per-board configuration, and each revision's own source and examples. Master is pinned to 0c2e9f7300; release commits are 20667c3a64 (3.10.3) and ebf8c2823c (3.10.6). Blink is used unless noted.
| board / example | 3.10.3 | 3.10.6 | master |
|---|---|---|---|
| esp32dev | 271250 / 23370 | 311160 / 26532 | 310964 / 26084 |
| esp32s3 | 371515 / 75863 | 436540 / 80008 | 407732 / 78216 |
| esp32c3 | 342600 / 63512 | 433834 / 70332 | 403408 / 68572 |
| esp32c6 | 285400 / 14924 | 379686 / 20316 | 360704 / 18724 |
| teensy40 | 61440 / 32928 | 79872 / 69792 | 49152 / 28320 |
| teensy41 | 62464 / 32992 | 80896 / 69792 | 50176 / 28384 |
| rp2040 | build failed | 357808 / 60272 | 350128 / 59996 |
| uno Blink | 3784 / 131 | 5166 / 633 | 5158 / 629 |
| uno Apa102 | 3178 / 187 | 4510 / 505 | 3682 / 326 |
| attiny85 | 3338 / 131 | 3132 / 237 | 2638 / 163 |
| stm32f103c8 | 16092 / 3248 | 26600 / 3672 | 26368 / 3488 |
Remaining master growth versus 3.10.3:
| board / example | flash delta | RAM delta |
|---|---|---|
| esp32dev | +39714 B (+14.6%) | +2714 B (+11.6%) |
| esp32s3 | +36217 B (+9.7%) | +2353 B (+3.1%) |
| esp32c3 | +60808 B (+17.7%) | +5060 B (+8.0%) |
| esp32c6 | +75304 B (+26.4%) | +3800 B (+25.5%) |
| uno Blink | +1374 B (+36.3%) | +498 B (+380.2%) |
| uno Apa102 | +504 B (+15.9%) | +139 B (+74.3%) |
| attiny85 | -700 B (-21.0%) | +32 B (+24.4%) |
| stm32f103c8 | +10276 B (+63.9%) | +240 B (+7.4%) |
Measurement notes:
- ESP32 framework pins were constant across each row: dev/s3 Arduino-ESP32 3.3.11 / IDF 5.5.5; c3 3.1.0 / IDF 5.3.2; c6 3.3.5 / IDF 5.5.1. Normal board flags were retained; no additional slim profile or size opt-ins were added.
- A common generated Arduino stub uses
::delay(0)for compatibility with 3.10.3. Released FastLED source was unchanged. - RP2040 3.10.3 fails in the framework's SDFS build because the
FsFilecopy constructor is deleted. Its missing result is not zero usage or a 3.10.6 substitute. - Master includes fix(memory): stop fl::cin and PWM state from linking into every sketch #4727, fix(avr): link Arduino Serial only when a sketch uses it (Fixes #4725) #4730, fix(esp32): link the WiFi stack only when a sketch uses fl::net wifi/OTA (#4726) #4731 and the default logging reduction in ESP32: ~37-50 KB of FL_WARN/FL_ERROR string pool shipped in default Arduino builds #4712. The master column was rebuilt in a separate directory after rejecting stale incremental outputs.
Proposal
- Establish a byte-level ledger for the remaining flash and RAM growth with
bash bloat <board>and matched symbol/link-map diffs. Prioritize C3/C6 RAM, STM32 flash, and the scarce RAM on AVR. Attribute controller storage, vtables, global state, driver registration, encoders, and optional subsystems to actual linked users. - Measure both the published examples and a controlled equivalent RGB workload across versions. Blink's newer Serial banner is part of its reported delta; use the controlled workload to identify library overhead independently. Keep the published-example scorecard visible throughout.
- Reduce the default footprint: eliminate unused feature linkage and state, shrink controller/settings and vtable costs where possible, and make driver binding/encoder selection retain only the functionality actually used. Reuse the focused investigations below.
- Review the cost of the C6 default PARLIO path and RMT/channel infrastructure as optimization targets. Preserve timing, supported drivers, network coexistence, and RGB/RGBW/RGBWW correctness while reducing their cost.
- Ratchet existing size budgets downward after measured savings and cover the remaining RAM regressions through existing test/CI entrypoints. Do not raise ceilings to accommodate these regressions.
Verified investigation entry points: src/fl/channels/cled_controller.h (ChannelOptions mSettings and virtual methods), src/fl/channels/manager.cpp.hpp, src/fl/channels/pipeline_binding.cpp.hpp, src/fl/channels/can_match.cpp.hpp, src/FastLED.cpp.hpp, src/platforms/esp/32/drivers/channel_manager_esp32.cpp.hpp, the RMT5/PARLIO drivers, and examples/Blink/Blink.ino.
Execution workflow: one item at a time, in the repository
We will work through the checklist below one item at a time in the existing repository checkout, without git worktrees, so the same build directories, toolchains, dependency caches and incremental compilation state can be reused.
- Use a feature branch in the same checkout for code changes. Keep the existing
.build/fbuild/<board>directories and test caches in place. - Implement and verify one item in one active platform sub-issue before starting the next. Run that item's builds sequentially; do not run concurrent implementations in separate checkouts or worktrees.
- For each item, record the starting SHA, affected symbols, before/after flash and RAM, relevant checks, and commit/PR. Post a cumulative performance-diff comment on this parent whenever a platform sub-issue closes. Keep the cumulative scorecard updated.
- Run platform builds and tests locally. Never invoke CI Full. For each child, collect fbuild bloat reports for 3.10.3 and master; audit FL_WARN category logging, fl::printf logging, and RMT/PARLIO overhead without dropping features.
- Reuse caches, but verify that the ELF reflects the changed source and flags. If concrete evidence shows stale output, use the appropriate wrapper's
--cleanoption for the affected build and verify again. Do not routinely wipe caches or disable fingerprint caching. - Check an item off only after its investigation or change has the evidence specified below. The acceptance criteria still govern final closure.
Platform sub-issues
The issues below are attached as native GitHub sub-issues. Each owns its platform's detailed implementation/validation checklist, measurements and budgets. Work through them one at a time, in the existing repository checkout without git worktrees, reusing build caches. Shared fixes belong in the active child and must be measured on affected siblings; record those results before checking off the relevant sibling criteria.
Suggested platform order prioritizes C3/C6 RAM, STM32 flash and AVR RAM, then the other ESP32 targets and validation of platforms with existing gains.
- fix(memory): reduce esp32c3 default flash/RAM usage (#4737) #4739: ESP32-C3 — reduce default flash/RAM
- fix(memory): reduce esp32c6 default flash/RAM usage (#4737) #4740: ESP32-C6 — reduce default PARLIO flash/RAM
- fix(memory): reduce stm32f103c8 default flash/RAM usage (#4737) #4744: STM32F103C8 — reduce flash/RAM
- fix(memory): reduce uno default flash/RAM usage (#4737) #4742: Uno — reduce Blink and Apa102 flash/RAM
- fix(memory): reduce attiny85 default flash/RAM usage (#4737) #4743: ATtiny85 — reduce RAM and preserve flash savings
- fix(memory): reduce esp32dev default flash/RAM usage (#4737) #4738: ESP32 — reduce default RMT/channel flash/RAM
- fix(memory): reduce esp32s3 default flash/RAM usage (#4737) #4741: ESP32-S3 — reduce default RMT/channel flash/RAM
- chore(memory): preserve teensy40 default flash/RAM gains (#4737) #4745: Teensy 4.0 — preserve gains and validate shared changes
- chore(memory): preserve teensy41 default flash/RAM gains (#4737) #4746: Teensy 4.1 — preserve gains and validate shared changes
- chore(memory): preserve rp2040 default flash/RAM gains (#4737) #4747: RP2040 — preserve gains and validate shared changes
Parent coordination checklist
- Freeze the implementation starting SHA, tool/framework versions and flags; reproduce the current scorecard and verify cache validity.
- Maintain a shared byte-level symbol/link-map ledger and controlled RGB-workload measurements alongside the published examples.
- Complete the seven platform reduction sub-issues with measured default savings, focused RED-to-GREEN budget evidence and landed changes; resolve every proposed exception explicitly.
- Complete the three platform validation sub-issues, preserving Teensy 4.0/4.1 and RP2040 improvements after shared changes.
- Run the full eleven-row board/example matrix sequentially, update flash/RAM budgets through existing checks, and verify relevant behavior/tests without relaxed ceilings.
- Publish the final three-version scorecard, cumulative savings, remaining gaps and commit/PR links; leave this parent open, including after all platform sub-issues are completed.
Acceptance criteria
- Before implementation, reproduce the regression with a focused failing size budget or measurement check (RED). Each fix turns that check green, with matched before/after flash and RAM evidence.
- Publish the symbol/link-map ledger and updated three-version scorecard with source SHAs, frameworks, flags and measurement commands. Verify that each analyzed ELF came from its claimed source revision; reject stale incremental artifacts.
- Land measured default-build RAM reductions for each of the eight regressed rows above, and flash reductions for the seven rows with positive flash deltas. Quantify progress toward the 3.10.3 baseline and every remaining gap. Any row that cannot meet this requirement needs an explicit maintainer-approved exception and a measured budget before closure.
- Show reductions on the controlled RGB workload as well as the published examples, so example edits alone cannot conceal library overhead. No caller opt-in is required for the claimed default savings.
- Preserve supported LED output, timing, network coexistence, power-limiter correctness, and explicitly used serial/network/white-channel features. Validate affected production paths and relevant tests/board builds.
- Preserve the existing Teensy and RP2040 improvements. Lower applicable existing flash budgets and establish enforceable RAM budgets through existing checks; do not relax thresholds.
- Close platform sub-issues only after their reductions and regression checks land; keep this parent open. An audit, report, or explanation of expected feature cost alone does not satisfy this issue.
Decisions
- Priority: high. These are default costs, including large proportional RAM increases on 512 B/2 KB AVR targets and significant ESP32-C3/C6 RAM growth.
- Use 3.10.3 as the optimization reference for comparable workloads, and the measured master column as the concrete starting point. Recovery toward the older baseline is the goal; exact parity must account for example changes and required correctness behavior.
- Keep default-build savings central. Optional slim configurations can supplement the work, but cannot satisfy the default footprint criteria.
- Coordinate overlapping driver-binding and AVR work through Eliminate memory usage from dynamic driver binding. #4733 and AVR: remaining Nano sketch growth vs 3.10.3 (+1.5 KB flash, +137 B RAM) and the RGBW power-estimate opt-in #4735. The platform sub-issues own implementation; this parent owns the complete cross-board measurement and reduction criteria.
- Execute sequentially in the existing repository checkout without git worktrees, preserving build caches between checklist items and invalidating only builds proven stale.
Open questions
- Which remaining bytes are avoidable overhead, and which are the smallest behavior-preserving implementation of required functionality? The matched symbol ledger must answer this before selecting fixes.
Related issues
- Pre-3.10.7 memory sweep #4728: source sweep and measurements; initial dead-weight fixes are already merged.
- Eliminate memory usage from dynamic driver binding. #4733: eliminate memory usage from dynamic driver binding.
- AVR: remaining Nano sketch growth vs 3.10.3 (+1.5 KB flash, +137 B RAM) and the RGBW power-estimate opt-in #4735: remaining AVR controller/settings/vtable and power-limiter costs.
Final evidence
All ten platform children are complete. The final eleven-row sequential local matrix passed at 41a6c284fc. Final scorecard and requirement-by-requirement audit record matched savings, remaining gaps, source/metric corrections and behavioral limits. Documentation reconciliation PR #4758 is merged at 79c6cdf9a977e2065986a4800e7253683c1501fd; only the task tracker differs from the validated implementation tree. This parent remains OPEN.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]fix(memory): reduce remaining default flash/RAM growth vs 3.10.3 across AVR, ESP32 and STM32[/-][+]meta(memory): reduce default flash/RAM usage across all measured platforms[/+]zackees commentedon Oct 7, 2026
Performance diff 1: ESP32-C3 (#4739)
PR #4748 lands the first platform reduction. The meta issue stays open. Work continues one platform at a time in the main repository checkout, without git worktrees or CI Full; platform builds are local.
fbuild board totals (flash / RAM bytes)
0c2e9f7300These are freshly rebuilt local comparisons. The older reference table in the issue body stays visible; small path/tooling variation in its flash values is not counted as a saving. No optional slim profile is used.
Separate bloat metrics
Published Blink's
image_flash: 385822 → 385622 B (-200 B). Attributed RAM: 25653 → 25621 B (-32 B). These metrics are not the fbuild board totals above. Both the old release and starting master were analyzed usingbash bloat esp32c3; candidate reports and equivalent-workload reports were analyzed too.The private RMT allocation record shrank from 12 to 8 bytes without changing ledger capacity or dynamic spill. Singleton RAM fell from 176 to 144 B. Building the allocation-failure message directly in
FL_ERRORavoids duplicate formatting: emitter 596 → 526 B, and a 48 B string-append helper disappears. Recovery progress is behindFL_LOG_RMT; final errors and all driver/encoder features remain supported. Nofl::printfis added.Evidence and budgets
Source references: 3.10.3
20667c3a6413ed46a828f78ec95fb57e58d753f8, starting master0c2e9f730007e52758d4abc2b9ba356fb581d923; landed revisione60f4fcf7f. fbuild 2.5.37, Arduino-ESP32 3.1.0, IDF 5.3.2, GCC 13.2, unchanged normal C3 board configuration. Historical source/examples were staged fromgit archiveinto the same.build/fbuild/esp32c3project with a compatible::delay(0)stub; source SHA is recorded separately from bloat's tooling-checkout SHA.(12 <= 8)before reordering, then passed. The old bloat report exceeds the committed ceilings by 200 B image flash and 32 B attributed RAM; the candidate passes both.bash compile esp32c3 --examples Blink;bash bloat esp32c3 --budget tests/data/esp32c3_bloat_budget.json --no-summary: pass. RMT-log-enabled local compile also passes, and the default build/budget was restored and rechecked.Cumulative measured savings so far: C3 152 B flash / 32 B RAM on the published example. Other platforms are pending and their shared savings are not assumed. Next: ESP32-C6 #4740, including the default PARLIO path.
Landed master was rebuilt/analyzed with
bash bloat esp32c3 --build --budget tests/data/esp32c3_bloat_budget.json --no-summaryand passed the same ceilings. All normal PR checks passed and CodeRabbit approved the final revision.zackees commentedon Oct 7, 2026
Cumulative memory performance diff — C6 completed
ESP32-C6 #4740: landed via PR #4749 (8d6ed12). Default PARLIO uses shared storage for its mutually exclusive encoding tables; the 64-byte nibble lookup is temporary during Wave8 initialization. No driver or LED format removed; ISR/transpose algorithms retained.
All values below are fbuild board flash / RAM bytes. Each row uses its own measured starting master, with the same framework/flags for historical, starting and final source. Work remains sequential in this checkout, without worktrees or CI Full.
Published-example savings across the two completed platform rows total 346 B flash / 128 B RAM. These are per-platform sums, not memory savings on one device. Historical parity has not been achieved; gaps remain explicit.
C6 evidence
20667c3a6413ed46a828f78ec95fb57e58d753f8; starting mastere60f4fcf7feff2cd7e2959eca445e8746b9fd9f3; landed8d6ed12ccbac48ccc9b3708b2d537ee3a2a6c921. C3 landed via fix(esp32c3): compact RMT allocation records and logging #4748 ate60f4fcf7f.::delay(0)for compatibility.bash compile esp32c6 --examples Blink,bash bloat esp32c6 --no-summary; historical/controlled source staged into the same cached.build/fbuild/esp32c6project and compiled through the fbuild runner wrapper. Reports for both 3.10.3 and master retained locally in.build/memory-4737/esp32c6/.bash bloat esp32c6 --budget tests/data/esp32c6_bloat_budget.json. Attributed-RAM ceiling retained, no threshold raised.bash test --cpp: 319/319 unit targets; examples cached and validated by wrapper. Lint and repository code review pass.fl::printflogging remains in PARLIO implementation.Next platform: STM32F103C8 #4744. This meta issue stays open.
2 remaining items
zackees commentedon Oct 7, 2026
Cumulative memory performance diff — ATtiny85 completed
ATtiny85 #4743 landed via PR #4752 at
8d8207f3919e596b7ab9c41cd6560d61692ef9ed. Bounded controller bookkeeping uses a byte only on 16-bit-int targets with a configured maximum <=255. Larger limits and 32-bit targets retain their original type. All three show passes and supported features remain intact.All table values are fbuild board flash / physical RAM bytes. Starting master is each platform's recorded implementation baseline; ATtiny85 uses the freshly matched pre-Uno master baseline so the previously landed shared selector saving is visible. The original three-version scorecard remains in the parent body.
Published-example savings across six completed board/example rows total 580 B flash / 366 B RAM. This sums separate targets, not savings on one device. The added 28 B flash comprises 12 B on ATtiny85 and 8 B each on the two Uno rows. The added 2 B RAM was already landed in #4751 and is first included here for ATtiny85; this index change itself adds no RAM saving. Historical parity has not been achieved.
ATtiny85 evidence and remaining gap
20667c3a6413ed46a828f78ec95fb57e58d753f8(3.10.3); matched pre-Uno master28a41d619f8a51952ef4e9fea127ac8eb10f45f9; child implementation based9cc468d5cea767ce59ce7d94566f44c2ce045d5; candidate0da2467cc245145437242d712eb21d91b33cc735; landed8d8207f3919e596b7ab9c41cd6560d61692ef9ed. Candidate/landed source and budget diff is empty. Landed published Blink is rebuilt and its scoped budget passes.CFastLED::show582 -> 570 B accounts for the 12 B flash saving. An attempted unrestricted byte index increased STM32 flash by 12 B; that experiment was rejected and the final 16-bit-int guard restores prior STM32/C3/C6 published totals. Their controlled measurements are carried forward from the previous landed verification; this PR keeps int unchanged on those architectures.Commands:
bash compile <board> --examples <example>;bash bloat <board> --no-summary;bash bloat attiny85 --budget tests/data/attiny85_bloat_budget.json; Uno scoped budgets;bash test fastled_core --debug;bash test --cpp;FL_REQUIRE_TINY_ELF=1 PYTEST_ADDOPTS='-k tiny_links_no_float --junitxml=...' bash test --py;bash lint. Reports, logs, source fingerprints, ledgers and RED/GREEN evidence are retained under.build/memory-4737/attiny85/and previous platform directories.Next: ESP32 #4738, then ESP32-S3 #4741, Teensy40 #4745, Teensy41 #4746 and RP2040 #4747. Five platform children completed; five remain. Parent #4737 stays open.
zackees commentedon Oct 7, 2026
Cumulative memory performance diff — ESP32
ESP32 #4738: PR #4753. Landed SHA:
003083fa285de400e5fc1f52a547df338f066716. Candidate/landed diff is empty; fresh landed ESP32 compile and scoped bloat budget pass. All ordinary PR checks pass; CodeRabbit APPROVED without findings.All values are fbuild board flash / physical RAM bytes. Matched implementation starting master is used, preserving the previous scorecard anchors. Original three-version measurements remain in the parent body.
Seven published board/example rows total2144 B flash /798 B RAM saved versus matched starts (separate targets, not one device). This adds1564/432 to the previous580/366: C3 shared512/136, C6 shared600/152, ESP32452/144. ESP32 had inherited84/48 before this child versus the original frozen310964/26084; those inherited savings are excluded from the matched-start sum. Including that explicitly stated bridge yields2228/846.
C6 control fresh starting HEAD8d8207f391 exactly reproduces360168/18596 and keyed symbol sizes; current359584/18460 saves584/136. Do not substitute published600/152. C3 control saves512/136 versus previous landed. ESP32 control saves444/144.
ESP32 default image313683→313231 and attributedRAM34637→34489 (distinct from physical boardRAM). RMT state packing52/16, HTTP unused initialization304/56, SPI storage96/72 account for published452/144. Exact controlled image299363→298919. Remaining gaps to3.10.3 are quantified above; parity has not been achieved.
Local evidence: matched 3.10.3/master fbuild bloat, focused RED→GREEN budgets, real SDK RMT accounting and HTTP loopback lifecycle, original/candidate SPI ownership accounting. Public SPI bus initialization times out inside SDK on both versions; no physical timing or hardware-recovery claim. All supported feature paths remain. Strict native315 fresh units plus4 previously strict-passed targets and95 examples PASS; full Python CI inventory and lint PASS. Four pre-existing arithmetic UB failures fixed with focused strict RED/GREEN and signed-wave/large-damping regressions. Shared S3/STM/Uno Blink/Apa102/Tiny local rebuilds preserve earlier sizes.
Existing flash ceiling ratcheted340000→313231; ESP32 attributedRAM34489 enforced by new scoped budget. Existing C3/C6 budgets lowered; no new workflow/relaxed ceiling. No logging fl::printf in audited ESP platform. Routine RMT caps use FL_LOG_RMT; genuine failures retain diagnostics.
Tools: fbuild2.5.37, dev/S3 Arduino3.3.11/IDF5.5.5/GCC14.2, C3Arduino3.1.0/IDF5.3.2/GCC13.2, C6Arduino3.3.5/IDF5.5.1/GCC14.2. Normal defaults/no slim opt-in. Commands bash compile, bash bloat (including scoped budgets), bash test --cpp --debug with UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1, bash lint. Artifacts .build/memory-4737/esp32dev/.
Sequential local builds in existing checkout; caches retained, no worktrees or CI Full. Next ESP32-S3 #4741, then Teensy40 #4745, Teensy41 #4746, RP2040 #4747. Parent #4737 stays OPEN.
zackees commentedon Oct 7, 2026
Cumulative memory performance diff — ESP32-S3
S3 #4741: PR #4754, landed SHA
0c2e7841e2d56735b475ab25571a8d15fe79dda4. Candidate/landed tree diff is empty; fresh landed local compile and image/RAM gate pass. All ordinary PR checks pass; CodeRabbit approved without findings. Shared source reductions already landed in earlier children; this PR verifies matched S3 evidence and enforces image/attributed-RAM budgets through the existing gate.All values below are fbuild board flash / physical RAM bytes. Original three-version measurements remain in the parent body. Previous matched starts are preserved; S3 adds a freshly reproduced original meta master0c2e9f7300.
Eight published board/example rows total2792 B flash /1006 B physical RAM saved versus matched starts: previous2144/798 plus S3648/208. These are separate devices, not one device’s savings. Original frozen S3 published407732/78216 differs from the fresh same-revision build407716/78216 by16flash; do not attribute that bridge to optimization. Candidate lies664/208 below frozenS3 but648/208 below matchedS3. ESP32’s earlier inherited84/48 bridge remains excluded from the matched-start total. Historical parity remains incomplete; every remaining gap is shown.
S3 matched old/new image367279→366603 (676saved), attributedRAM38503→38323 (180saved), distinct from physical boardRAM208saved. Existing flash baseline367407→366603 has zero unclaimedheadroom; new scoped RAM budget38323 is enforced by the existing workflow/test entrypoint, with no new workflow or raised ceiling.
Exact saved GPIO3 oneNEOPIXEL red/black1000ms control, noSerial. Published workload retains its normalbanner/pin. 3.10.3 both371515/75863, originalmastercontrol407488/78216, currentcontrol406840/78008. fbuild2.5.37, Arduino-ESP32 3.3.11 / IDF5.5.5 / Xtensa GCC14.2.0, normaldefaults/no slim opt-in. Same source archives and cached stagedproject, forced generatedTU fingerprints; finallyrestored currentpublished validated separately.
Focused retrospective originalmaster budgetRED676image/180attributedRAM; currentGREEN. ExistinggateRED804unclaimedimageheadroom before baselineupdate, GREENzeroheadroom after. Sharedfixes retain preimplementationRED/GREEN in siblingissues; this budget-only PR does not claimnewsourceimplementation. SelectedPythonbudget/gate tests, full lint, manualthreefile review PASS. Prior strictnative/actualSDK RMT/HTTP/SPI ownership evidence remains in PR4753, freshS3SDK sourcecompile PASS. No physical waveform or hardware-recovery claim.
Audit: no loggingfl::printf in measured ESPplatformpath; genuine warningdiagnostics preserved, routineRMT capabilitylogs alreadyFL_LOG_RMT. Driverchoice/whiteformats/networkcoexistence remain. TimingfallbacksEmpty is .flash.rodata despite nm’s lowercase d classification; no fictitious physicalRAM saving. Unsafe narrowing of configurablecounts and changing allocator singletonthread/lifetimecontracts rejected. PhysicalFastLEDsectionledger and per-version bloat retained under .build/memory-4737/esp32s3/.
Commands bash compile esp32s3 --examples Blink; bash bloat esp32s3 --no-summary/--budget; documentedexistingS3 regression script --no-build; PYTEST_ADDOPTS selectedinventory with bash test --py; bash lint. Builds/tests local, sequential in existingcheckout, caches retained; no worktrees or CI Full.
Seven platform children complete after S3 closes; next Teensy40 #4745, Teensy41 #4746, RP2040 #4747. Parent #4737 stays OPEN.
zackees commentedon Oct 7, 2026
Cumulative memory performance diff — Teensy 4.0 validation
Teensy 4.0 #4745: PR #4755, landed SHA
8647a12f10825567c068223d20f2abbbdb68ffab. Candidate and landed trees match; fresh landed local rebuild and scoped budget pass. All ordinary checks and follow-up review are green. No native source change: the validation preserves the existing gains and adds a scoped image/RAM budget.Board flash / physical RAM bytes. Matched implementation anchors are preserved from the preceding scorecard; original three-version numbers remain in the parent body.
Nine published rows retain cumulative savings of 2792 B flash /1006 B physical RAM versus their matched implementation starts. Teensy 4.0 adds zero new savings; its pre-existing 12288/4608 improvement versus3.10.3 is preserved and is excluded from the optimization sum. Historical gains must not be counted as new changes. Prior S3 16-byte frozen-to-matched bridge and ESP32 inherited84/48 bridge remain separate from the sum.
Matched 3.10.3 published/control61440/32928; current published/control49152/28320. Current published image49152/attributedRAM22990; controlled attribution22806 despite equal rounded board totals. Historicalimage61440/attribution27709. Scoped JSON49152/22990 GREEN; retrospective historical RED12288image/4719attributedRAM. There is no Teensy40 size workflow to ratchet. Existing reusable build workflow now accepts an optional bloat_budget input; the Teensy40 caller supplies the JSON. It rebuilds Blink after the example sweep and enforces scoped ceilings without adding a workflow.
Source old20667c3a64/current0c2e7841e2. fbuild2.5.37, Teensy framework1.160.0, ARM GCC11.3.1 package1.110301.0, CortexM7 600MHz, -Os/LTO/hardfloat/C++17, normal defaults. TEENSYDUINO metadata159 retained. Same cached stagedproject; archived historicalsource, generated-TU fingerprints, exact GPIO3 red/black1000ms control, finallyrestore published checked separately.
Default ELF includes SlimBridgeController→ChannelManager→ChannelEngineObjectFLED→ObjectFLEDPeripheralReal. Actual SDK compile/link validates initialization/show integration; strict SlimBridge and ObjectFLED targets pass with halt-on-error UBSan. ObjectFLED host tests use production driver logic with mocked peripheral: no physical waveform claim. No native source edits, no feature removed. No fl::printf matches in Teensy platform. Invalid pins/bus/driver-disable/timeouts retain genuine warnings; optional FlexIO RX diagnostic dumps are outside default output.
Manual scoped-budget review and actual bloat gate pass; no mirrored constant test, relaxed ceiling or new workflow. Local sequential builds/tests, no worktrees or CI Full; cache retained. Artifacts .build/memory-4737/teensy40/.
After Teensy40 closes, eight platform children complete; next Teensy41 #4746, then RP2040 #4747. Parent #4737 stays OPEN.
zackees commentedon Oct 7, 2026
Cumulative memory performance diff — Teensy 4.1 validation
Teensy 4.1 #4746: PR #4756, landed SHA
893216fb2ce2cb7d370a401069319636da0b92ac. Candidate and landed trees match. Fresh landed local Blink rebuild and scoped budget PASS; independently measured text+data is 50176 B. No hosted checks/reviews were present; local five-file review, lint and focused Python tests passed.Board flash / physical RAM bytes:
Ten published rows retain cumulative savings of 2792 B flash / 1006 B physical RAM versus matched implementation starts. Teensy 4.1 adds zero new savings; its historical 12288/4608 improvement versus 3.10.3 is preserved and excluded from this sum. Previous S3 frozen-to-matched 16-byte and ESP32 inherited 84/48 bridges remain separate. Original three-version matrix remains in the parent body.
Matched measurements
Board flash / physical RAM bytes. Current matches the original meta master reference 50176/28384; new savings since that reference are zero. No historical gain is counted as a new source optimization.
3.10.3
20667c3a6413ed46a828f78ec95fb57e58d753f8, current master8647a12f10825567c068223d20f2abbbdb68ffab. fbuild 2.5.37, Teensy framework 1.160.0, ARM GCC 11.3.1 package 1.110301.0, Cortex-M7 600MHz, normal -Os/LTO/hard-float/C++17 flags. Historical source compatibility stub ::delay(0), current normal stub. No slim opt-in.Current published image 50176/attributedRAM 23279; control attribution 23095 despite identical rounded board totals. Historical image 62464/attributedRAM 28028. Retrospective historical budget RED 12288 image/4749 attributedRAM; current restored published budget GREEN. This protects preserved gains; no new native implementation or pre-code RED claim.
Apa102 local SDK build succeeds: board 49152/28448, image 49152/attributedRAM 23176. Existing workflow metric independently reports Blink text+data 50176 and Apa102 49152, so both lowered ceilings use their actual metric. Blink is restored before its final budget check.
Validation
bash bloat teensy41 --example Blink --build --budget tests/data/teensy41_bloat_budget.jsonpasses locally. Existing workflow rebuilds Blink after its example sweep, so the budget cannot silently analyze another sketch's ELF.Nine platform children complete after this closure. RP2040 #4747 is next. Parent #4737 remains OPEN.
zackees commentedon Oct 7, 2026
Cumulative memory performance diff — RP2040
PR4757 is merged. Candidate and landed trees match; fresh landed local build and scoped budget PASS. Current-head ordinary checks passed and CodeRabbit approved after its single documentation finding was fixed.
PR #4757, landed
41a6c284fcbbc8c6cb0a379bd994b98d017f78d1. Default RP2040 saves 76 B allocated image flash /38416 B physical RAM in both published Blink and controlled RGB, without dropping RX or SPI routing features.Previous ten-row board flash/physical RAM scorecard remains below; RP2040 uses allocated image flash because its raw GNU size counter includes reserved heap/stack.
RP2040 corrected image / physical RAM
Eleven published rows save 2868 B flash /39422 B physical RAM versus matched implementation anchors. RP2040 contributes actual allocated image savings; other rows retain their board flash metric. This is a sum across separate targets, not one device. Preserved Teensy historical gains remain excluded; RP2040 inherited56image/16RAM versus fresh original-meta image135876/RAM59996 is likewise excluded.
Recovered three-version RP2040 record
The original frozen matrix remains historical raw-tool evidence. Original meta raw350176 differs48 from frozen350128; keep this frozen-to-matched difference separate from savings. 3.10.3 requires the SDK’s three SdFat defines identically applied to both revisions; current results are unchanged by them. Released source was not patched.
RP2040 flash counter correction
Current allocated-image bytes135744 + .heap SHT_NOBITS250684 + .stack_dummy SHT_NOBITS2048 = GNU text+data388476. The read-only .heap reservation grows by38416 when BSS is removed; it is not programmed flash. Previous routing-image135788 plus heap212268 plusstack2048 = reported350104. Source optimization saves44programmedbytes and38416physicalRAM; it does not add38372programmedbytes. Original currentmaster reported350136/59980,image135820; full candidate reported388476/21564,image135744; total actualsavings76image/38416physicalRAM. ExplicitSDKRX report proves Singletonstaticstorage38416 plus4pointer and RpPioRxDevice::begin888; noheapallocation orcapacityreduction.
.boot2: type=SHT_PROGBITS size=256 address=0x10000000 flags=0x6
.ota: type=SHT_PROGBITS size=10228 address=0x10000100 flags=0x3
.partition: type=SHT_PROGBITS size=1804 address=0x100028f4 flags=0x3
.text: type=SHT_PROGBITS size=110132 address=0x10003000 flags=0x6
.rodata: type=SHT_PROGBITS size=9352 address=0x1001de38 flags=0x2
.ram_vector_table: type=SHT_NOBITS size=192 address=0x20000000 flags=0x3
.data: type=SHT_PROGBITS size=3972 address=0x200000c0 flags=0x6
.bss: type=SHT_NOBITS size=7292 address=0x20001048 flags=0x3
.heap: type=SHT_NOBITS size=250684 address=0x20002cc4 flags=0x2
.stack1_dummy: type=SHT_NOBITS size=2048 address=0x20040000 flags=0x3
.stack_dummy: type=SHT_NOBITS size=2048 address=0x20041000 flags=0x2
Native SPI canHandle shrinks164→148bytes and two7-byte tables disappear; RX global pool38416 and40-byte constructor plus4-byte init entry disappear from TX-only default. Explicit SDK RX retains full38416-byte aligned static storage and4-byte singleton pointer; same resource claim/capacity/DMA lifecycle, noheap. Local affectedRP2350 SDK build+bloat passes. Strict native417/417unit/examplejobs, lint, Pythonbudgetchecks, six-file review and scoped local gate pass. Physical hardware waveforms were not measured.
Source pins old20667c3a64/3106ebf8c2823/originalmeta0c2e9f7300; fbuild2.5.37, Arduino-Pico5.7.0, ARM GCC14.2.0, Cortex-M0+133MHz, normal-Os/C++17. Samecache stagedarchives, generated-TU fingerprints andfinallyrestore verify ELFs. Nofl::printf inRPplatform; genuinefailurewarningsremain; RMT/PARLIO notRPbackend. Nofeaturesremoved/worktrees/CI Full/newworkflow/raisedceilings. Existing build_rp2040 caller now enforces JSON135744image/8697attribRAM after rebuildingBlink.
All ten children complete after closure; final eleven-row matrix/acceptance audit still follows. Parent stays OPEN.
zackees commentedon Oct 7, 2026
Final sequential local matrix
Implementation SHA:
41a6c284fcbbc8c6cb0a379bd994b98d017f78d1. All eleven local build/bloat budget checks passed. Every row verifies all 2,394 tracked staged source files and the actual staged sketch against this commit. Same source digest across all rows. No worktrees or CI Full; build and SDK caches retained.Three-version published-example scorecard
Bytes are board flash / physical RAM, except RP2040 uses allocated image / physical RAM. Release columns below preserve the original frozen three-version measurements; they are not relabeled as fresh matched optimization anchors. Those anchors and controlled-workload differences are in the cumulative diff below.
RP2040 raw final GNU/fbuild flash is 388476, including read-only NOBITS heap/stack reservations; it is not programmed flash. Recovered 3.10.3 uses framework-required SdFat flags identically checked on master, without modifying released library source. The original frozen failure/raw table remains historical evidence.
Release source pins: 3.10.3
20667c3a6413ed46a828f78ec95fb57e58d753f8; 3.10.6ebf8c2823c486158a046d8e1e682d3143580ae4e; original meta master0c2e9f730007e52758d4abc2b9ba356fb581d923.Commands:
bash bloat <board> --example <example> --build --budget tests/data/<fixture>_bloat_budget.json --no-summary. Normal default board flags, no caller size opt-in. Each saved row contains its report, build log, and per-example fbuild metadata with SDK/compiler aliases and flags. Physical RAM and attributed RAM are separate metrics.Matched cumulative savings and remaining gaps
Cumulative memory performance diff — RP2040
PR4757 is merged. Candidate and landed trees match; fresh landed local build and scoped budget PASS. Current-head ordinary checks passed and CodeRabbit approved after its single documentation finding was fixed.
PR #4757, landed
41a6c284fcbbc8c6cb0a379bd994b98d017f78d1. Default RP2040 saves 76 B allocated image flash /38416 B physical RAM in both published Blink and controlled RGB, without dropping RX or SPI routing features.Previous ten-row board flash/physical RAM scorecard remains below; RP2040 uses allocated image flash because its raw GNU size counter includes reserved heap/stack.
RP2040 corrected image / physical RAM
Eleven published rows save 2868 B flash /39422 B physical RAM versus matched implementation anchors. RP2040 contributes actual allocated image savings; other rows retain their board flash metric. This is a sum across separate targets, not one device. Preserved Teensy historical gains remain excluded; RP2040 inherited56image/16RAM versus fresh original-meta image135876/RAM59996 is likewise excluded.
Recovered three-version RP2040 record
The original frozen matrix remains historical raw-tool evidence. Original meta raw350176 differs48 from frozen350128; keep this frozen-to-matched difference separate from savings. 3.10.3 requires the SDK’s three SdFat defines identically applied to both revisions; current results are unchanged by them. Released source was not patched.
RP2040 flash counter correction
Current allocated-image bytes135744 + .heap SHT_NOBITS250684 + .stack_dummy SHT_NOBITS2048 = GNU text+data388476. The read-only .heap reservation grows by38416 when BSS is removed; it is not programmed flash. Previous routing-image135788 plus heap212268 plusstack2048 = reported350104. Source optimization saves44programmedbytes and38416physicalRAM; it does not add38372programmedbytes. Original currentmaster reported350136/59980,image135820; full candidate reported388476/21564,image135744; total actualsavings76image/38416physicalRAM. ExplicitSDKRX report proves Singletonstaticstorage38416 plus4pointer and RpPioRxDevice::begin888; noheapallocation orcapacityreduction.
.boot2: type=SHT_PROGBITS size=256 address=0x10000000 flags=0x6
.ota: type=SHT_PROGBITS size=10228 address=0x10000100 flags=0x3
.partition: type=SHT_PROGBITS size=1804 address=0x100028f4 flags=0x3
.text: type=SHT_PROGBITS size=110132 address=0x10003000 flags=0x6
.rodata: type=SHT_PROGBITS size=9352 address=0x1001de38 flags=0x2
.ram_vector_table: type=SHT_NOBITS size=192 address=0x20000000 flags=0x3
.data: type=SHT_PROGBITS size=3972 address=0x200000c0 flags=0x6
.bss: type=SHT_NOBITS size=7292 address=0x20001048 flags=0x3
.heap: type=SHT_NOBITS size=250684 address=0x20002cc4 flags=0x2
.stack1_dummy: type=SHT_NOBITS size=2048 address=0x20040000 flags=0x3
.stack_dummy: type=SHT_NOBITS size=2048 address=0x20041000 flags=0x2
Native SPI canHandle shrinks164→148bytes and two7-byte tables disappear; RX global pool38416 and40-byte constructor plus4-byte init entry disappear from TX-only default. Explicit SDK RX retains full38416-byte aligned static storage and4-byte singleton pointer; same resource claim/capacity/DMA lifecycle, noheap. Local affectedRP2350 SDK build+bloat passes. Strict native417/417unit/examplejobs, lint, Pythonbudgetchecks, six-file review and scoped local gate pass. Physical hardware waveforms were not measured.
Source pins old20667c3a64/3106ebf8c2823/originalmeta0c2e9f7300; fbuild2.5.37, Arduino-Pico5.7.0, ARM GCC14.2.0, Cortex-M0+133MHz, normal-Os/C++17. Samecache stagedarchives, generated-TU fingerprints andfinallyrestore verify ELFs. Nofl::printf inRPplatform; genuinefailurewarningsremain; RMT/PARLIO notRPbackend. Nofeaturesremoved/worktrees/CI Full/newworkflow/raisedceilings. Existing build_rp2040 caller now enforces JSON135744image/8697attribRAM after rebuildingBlink.
All ten children are closed and the final eleven-row matrix has now passed. Parent stays OPEN; final documentation/acceptance reconciliation follows.
Logging and behavior limits
No
fl::printfcalls remain in the ESP32, RP, or Teensy4 platform trees at this SHA. RMT5 diagnostics use FL_LOG_RMT and PARLIO category logging is retained. Failure warnings and some legacy RMT4/Teensy RX diagnostics still use FL_WARN; no claim of repository-wide warning conversion is made. Focused host/SDK/QEMU checks cover changed accounting, ownership, routing, encoding, serial/white-channel/power behavior; they do not prove physical hardware waveforms. SPI SDK initialization timed out on both original and candidate in QEMU; direct ownership accounting passed.zackees commentedon Oct 7, 2026
Final acceptance audit
The eleven-row local default build/bloat matrix at
41a6c284fcbbc8c6cb0a379bd994b98d017f78d1passed. Final three-version scorecard, matched published/control savings and remaining gaps. This parent stays OPEN.Documentation reconciliation landed in PR #4758, with no production source changes. The implementation acceptance evidence and documentation reconciliation are complete. PR #4758 merged at
79c6cdf9a977e2065986a4800e7253683c1501fd; only agents/tasks/todo.md differs from the validated implementation tree. The parent must remain OPEN even after this bookkeeping is complete.zackees commentedon Oct 7, 2026
Blink Serial correction — Uno
Maintainer correction: Blink should not initialize Serial or print setup banners. PR #4759 removes those calls on every platform, retaining LED setup and the blink loop. Landed at
a439902ac6af64e600031c01b5c2ac0df2e690bc; candidate and landed trees match.Fresh landed local Uno build and bloat budget pass: 3922 B flash /266 B physical RAM, attributed RAM260. Before removal:5130/443, attributed438. This removes 1208 B flash /177 B physical RAM; Serial and HardwareSerial symbols are absent. Existing Uno Blink budget ratcheted to3922 image/260 attributed RAM. Lint and manual three-file review passed.
Compared with matched3.10.3 Blink3784/131, remaining published Uno gap is now +138 B flash /+135 B RAM. This is an example correction, separate from prior behavior-preserving library optimization savings. Controlled-workload measurements remain separate; other boards have not been remeasured for this example change. The prior eleven-row scorecard remains historical evidence for its pinned SHA, not a claim about the new sketch. Parent stays OPEN; no worktrees or CI Full.
zackees commentedon Oct 7, 2026
Superseded by #4760 at the maintainer’s request so the investigation can restart with equivalent Blink sketches without Serial initialization or prints across all versions. The old published tables mix example overhead with library differences and remain historical evidence. Prior fixes stay landed; ten fresh native platform children are attached to #4760. No new builds or optimization work were started as part of this tracker replacement.
zorathvael commentedon Oct 8, 2026