Skip to content

meta(memory): restart footprint comparison with matched Blink without Serial #4760

Open
10 of 10 issues completed

Description

@zackees

Context

This replaces #4737 at the maintainer's request. Its published Blink comparison mixed a 3.10.3 sketch with Serial calls commented out and newer sketches that initialized Serial and printed banners. Those example costs must not be treated as library regressions. Prior landed optimizations remain; prior tables are historical evidence, not the baseline for this restart.

PR #4759 removed Serial initialization and prints from Blink on every platform, landed at a439902ac6af64e600031c01b5c2ac0df2e690bc. This issue starts with fresh, unchecked platform checklists. Creating this tracker does not start builds or implementation; measurements will be redone when work resumes.

Known corrected Uno result — not a new full matrix

Uno Blink, no Serial flash physical RAM
3.10.3, archived matched build 3784 B 131 B
master at a439902, freshly verified 3922 B 266 B
remaining growth +138 B (+3.6%) +135 B (+103.1%)

Removing the accidental banner saved1208 B flash/177 B physical RAM from the preceding published Uno Blink. Attribute that separately from library optimization. Other platforms have not been remeasured with the corrected sketch. Do not fill missing cells from old Serial-enabled measurements.

Measurement protocol

  • Pin 3.10.3 (20667c3a6413ed46a828f78ec95fb57e58d753f8), 3.10.6 (ebf8c2823c486158a046d8e1e682d3143580ae4e) and the exact master SHA before the new run.
  • Use an equivalent minimal Blink workload across all versions: same LED count, chipset, actual pin, color sequence and delays; no Serial.begin, Serial prints, banner or other diagnostics in any version's sketch. Record the exact sketch and compatibility changes. Keep released library source unchanged for baseline measurements.
  • Use identical per-board framework/compiler versions and default flags across versions; retain normal features, no slim-profile opt-in. Document necessary SDK compatibility defines identically and separately.
  • Collect bash compile board totals and bash bloat reports for every revision; 3.10.3/master bloat is mandatory per child. Preserve ELF/map/symbol evidence, source provenance and flags. Verify actual linked Serial objects/UART routines are absent or explain an unexpected retained dependency.
  • Report allocated image flash, physical board RAM and attributed symbol RAM separately. RP2040 raw GNU flash includes reserved NOBITS heap/stack; use allocated image for flash comparisons and preserve raw counters separately.
  • Reject stale source/sketch/flag outputs before comparing. Reuse caches; clean only affected builds with concrete stale-output evidence. Missing/failed baselines remain explicit failures, never zero or another version's substitute.

Execution and optimization

Work one platform and one checklist item at a time in the existing repository checkout, without git worktrees, preserving fbuild/toolchain/dependency/test caches. Use feature branches in that checkout. Run platform builds/tests locally and sequentially; never CI Full.

First establish the corrected baseline matrix; then prioritize measured remaining regressions. Investigate controller/settings/vtable/global-state storage, unnecessary linked features, RMT and default C6 PARLIO encoder/driver cost. Convert routine FL_WARN diagnostics to appropriate FL_LOG_* categories and eliminate fl::printf logging where found, retaining meaningful failures. Preserve supported LED output, timing, RGB/RGBW/RGBWW, power limiting, explicit Serial/network use, ownership and lifecycle behavior.

For Uno, investigate the measured controller24→87 B growth and the controller-slot limit8→16: current MAX_CLED_CONTROLLERS uses broad FL_IS_AVR_ATMEGA despite the Mega/Leonardo comment. These are investigation leads, not accepted fixes.

Parent checklist

  • Freeze revisions, canonical no-Serial workload, SDK/compiler versions and flags.
  • Complete corrected three-version measurements for ten platforms; retain Uno Apa102 as a separately matched additional row.
  • Publish the new eleven-row scorecard and symbol/link-map ledger, with remaining3.10.3 gaps and no stale Serial-enabled cells.
  • Prioritize and land behavior-preserving reductions justified by the corrected ledger.
  • Ratchet applicable existing flash/RAM budgets without raising ceilings; preserve existing platform gains.
  • Verify affected production paths and the final local sequential matrix; distinguish host/SDK testing from physical waveform evidence.
  • Post a cumulative performance-diff comment here whenever a new platform child closes, with matched before/after bytes and landed PR/SHA.

Acceptance criteria

  • Every child supplies verified matched3.10.3/master fbuild bloat and no-Serial sketch provenance; three-version scorecard includes3.10.6.
  • Every claimed regression/reduction is based on the corrected workload, with symbol/section evidence and separate image/physical/attributed metrics.
  • Before each code fix, capture a focused failing test or budget (RED), then show the implementation passes it (GREEN), relevant local tests, lint and review.
  • Preserve supported features; report remaining gaps and measured limitations honestly. Optional slim builds or removing caller-used functionality do not satisfy default-build savings.
  • Close children only after required evidence and changes land; leave this parent open unless the maintainer explicitly requests closure.

Decisions

Related

#4737: superseded investigation and prior optimizations. #4733: dynamic driver binding. #4735: AVR controller/settings/vtable costs. #4759: Blink Serial correction.

Fresh native platform sub-issues

Sub-issues

Sub-issues

10 of 10 Issues completed
Loading 10 sub-issues

Activity

  1. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor
    {
     "schema": "grind-plan/v1",
     "run_id": "a7c2",
     "meta": 4760,
     "original": null,
     "repo": "FastLED/FastLED",
     "main": "master",
     "mode": "sequential",
     "preflight": "handled",
     "structure": "simple",
     "stages": [
      {
       "stage": "bugs",
       "base": "master",
       "children": [
        4764,
        4765,
        4761,
        4762,
        4766,
        4767,
        4763,
        4768,
        4769,
        4770
       ]
      }
     ],
     "deferred_groups": [],
     "feature_merge": null,
     "problem_reporting": "issue",
     "models": {},
     "ci": false,
     "scripts": {
      "lint": "./lint",
      "test": "./test --cpp"
     },
     "rules": {
      "stuck_bug": "block_dependents_only"
     }
    }
  2. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor
    {
     "schema": "grind-plan/v1",
     "run_id": "7c2e",
     "meta": 4760,
     "original": null,
     "repo": "FastLED/FastLED",
     "main": "master",
     "mode": "sequential",
     "preflight": "handled",
     "structure": "simple",
     "stages": [
      {
       "stage": "bugs",
       "base": "master",
       "children": [
        4761,
        4763,
        4768,
        4769,
        4770
       ]
      }
     ],
     "deferred_groups": [],
     "feature_merge": null,
     "problem_reporting": "issue",
     "models": {
      "worker": "sonnet",
      "integrator": "sonnet"
     },
     "ci": false,
     "scripts": {
      "lint": "./lint",
      "test": "./test"
     },
     "rules": {
      "stuck_bug": "block_dependents_only"
     }
    }
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