Skip to content

chore(memory): preserve teensy41 default flash/RAM gains (#4737) #4746

Closed

Description

@zackees

Context

Platform sub-issue of #4737. Already improved versus both releases. Preserve the measured 50,176 B flash / 28,384 B RAM reference.

Source measurements, flash / RAM in bytes, fbuild 2.5.37, per-version source/examples and constant per-board build configuration. Reference SHAs: 3.10.3 20667c3a64, 3.10.6 ebf8c2823c, master 0c2e9f7300.

example 3.10.3 3.10.6 master reference
Blink 62464 / 32992 80896 / 69792 50176 / 28384

Execution workflow

Work one checklist item and one platform sub-issue at a time across the entire #4737 project, in the existing repository checkout without git worktrees. Use a feature branch in that checkout and reuse .build/fbuild/teensy41, toolchain/dependency caches and test caches. Run builds sequentially. Verify changed source/flags are reflected in the ELF; use the appropriate wrapper's --clean only when stale-output evidence requires it. Record each completed item's measurements, checks and commit/PR before moving on.

Checklist

  • Reproduce this platform's current starting measurements with recorded SHA, flags and framework versions, and verify cache validity.
  • Create matched symbol/link-map evidence using bash bloat teensy41; retain both the published example and controlled RGB-workload measurements where applicable.
  • Establish a regression budget for the existing gains and validate shared controller/channel/global-state changes from sibling issues.
  • Attribute any new growth with symbol/link-map diffs and recover it before closure; preserve applicable existing Apa102 ceilings too.
  • Verify relevant Teensy LED output, timing and initialization behavior; do not require speculative platform edits when the budget remains satisfied.
  • Keep flash and RAM at or below the recorded master reference under the same configuration, or obtain an explicit maintainer-approved measured exception.
  • Add a focused size regression check. For any implementation, capture a failing budget/reproduction before coding (RED) and the passing result afterward (GREEN); run relevant tests, lint and code review.
  • Ratchet applicable existing flash budgets and enforce RAM budgets through existing checks, preserving normal feature behavior and avoiding relaxed ceilings.
  • Publish final before/after bytes, remaining gaps, source SHA, commands, flags, framework versions and landed commit/PR links; update meta(memory): reduce default flash/RAM usage across all measured platforms #4737's platform scorecard.

Decisions

  • This platform has no measured remaining growth in the reference matrix; its role is preserving gains and validating shared changes.
  • Scope is this platform; shared fixes must be measured on affected siblings and tracked in the parent.
  • Budget failures require a focused fix and RED-to-GREEN evidence; passing validation does not require an unrelated code change.

Activity

  1. zackees commented on Oct 7, 2026

    @zackees
    MemberAuthor

    Landed PR #4756 at 893216fb2ce2cb7d370a401069319636da0b92ac. Candidate and landed trees match. Fresh landed local budget build PASS: flash/physical RAM 50176/28384, image/attributed RAM 50176/23279. Independent existing workflow metric: text+data 50176. Matched 3.10.3 published/control 62464/32992; current published/control 50176/28384. Historical gains 12288/4608 preserved; no new source savings claimed.

    Existing Blink/Apa102 ceilings lowered to 50176/49152; local Apa102 build passes. Scoped Blink RAM budget is enforced by the existing reusable build workflow. Historical retrospective budget RED and restored/landed GREEN recorded. Actual SDK builds, full lint, focused Python tests and five-file review pass. Shared strict production-logic tests from unchanged Teensy source are reused; physical waveform timing is not claimed. No fl::printf logging matches; genuine diagnostic warnings retained. No native features removed, worktrees, raised ceilings or CI Full. Full measurements/provenance/limitations are in the cumulative parent performance comment and PR body.

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