Repository navigation
fix(memory): cut Uno Blink static RAM 168 -> 136 B (#4788) - #4789
Conversation
- Restore 3.10.3 controller-slot policy: 16 only on Mega/Leonardo, 8 on Uno. - setSpiBus is virtual only on ESP32, where its sole overrides live. - Fixed-white chipset policy is a bit beside mEnabled, not a virtual. - constexpr AtomicFake ctors: wait-spin budget needs no startup ctor. - No weak timer_millis on classic ATmega; MS_COUNTER uses timer0_millis. - Tighten Uno Blink, Uno APA102 and ATtiny85 bloat budgets to observed. - Document AVR physical vs attributed RAM in binary-size-analysis.md.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (10)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe AVR changes adjust controller limits, controller state, virtual methods, and timer selection. Size budgets are updated, and the Uno analysis documents distinguish attributed RAM from physical static RAM. ChangesAVR memory footprint
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to This change reduces AVR flash and RAM use without an identified behavioral regression. It reuses an existing timer configuration name, and ATmega4809 builds are unaffected by the new timer branch. It appears ready to merge, with the documented remaining RAM gap still open against the issue target. 🚥 Pre-merge checks | ✅ 3 | ❌ 1 | ❓ 1❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation The PR implements the reported Resolution Provide the missing reviewable regression evidence, retained measurement artifacts and provenance, compatibility evidence, and maintainer decision on the explicit 5 B gap. Without that evidence, compliance with all Full details: Docstring CoverageExplanation Docstring coverage is 60.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 5 files. (4 skipped: 4 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #4788 (partial parity, see remaining bytes).
Matched Uno Blink (dashboard sketch, fbuild 2.5.37, AVR GCC 7.3.0, core 5.4.0)
Measured with
fbuild buildandfbuild symbols. These are physical bytes, with aliased vtables counted once.setSpiBusis virtual only on ESP32, where all of its overrides livemEnabled, not a virtualconstexprAtomicFakectors: the wait-spin budget no longer needs a startup ctortimer_millison classic ATmega:MS_COUNTERusestimer0_millis5 B remain above 3.10.3, and closing them needs a maintainer decision.
FastLED: the state behindgetLastShowBrightness()andisPowerLimited()(feat(power): report when the power limiter lowers brightness #4425).Both are supported, caller-visible features. This PR does not remove them.
Budgets tightened to observed values:
Validation
bash test --cpp: 319/319 unit and 95/95 examples pass. This includes the WS2814/LC8816E fixed-white rejection tests.bash lintis clean.bash bloat --budgetgates pass.bash compile esp32s3 --examples Apa102passes; on ESP32,setSpiBusstays virtual.agents/docs/binary-size-analysis.mdgains a section on AVR physical vs attributed RAM, with this ledger.Summary by CodeRabbit