Skip to content

docs(bloat): record matched 3.10.3/3.10.6 no-Serial rp2040 Blink baselines - #4987

Merged
zackees merged 1 commit into
masterfrom
docs/4770-rp2040-3-10-baselines
Oct 31, 2026
Merged

zackees merged 1 commit into
masterfrom
docs/4770-rp2040-3-10-baselines

Conversation

@zackees

@zackees zackees commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Closes #4770

This fills in the 3.10.3 and 3.10.6 rows that #4981 left open.

Method: each release's src/ and library.json come from git archive at the pinned SHAs (3.10.3 20667c3a64, 3.10.6 ebf8c2823c), with the library source unchanged. Each one goes into a copy of master's generated rp2040 fbuild project: rpipico, Arduino-Pico 5.7.0, the same platformio.ini flags, and the same Serial-free examples/Blink and main.cpp. Each build ran fbuild build --release, then fbuild symbols and arm-none-eabi-size -A on the ELF.

Compatibility edits, the same for both releases:

  • #define PIN_DATA 3, which is what FL_PIN_CLOCKLESS_1 resolves to on rp2040 at master.
  • delay(0) in place of fl::delay(0) in main.cpp, because fl::delay does not exist in 3.10.3.
image flash attributed RAM physical RAM
3.10.3 78620 7049 8344
3.10.6 113852 47433 48788
master a96b4a3 103212 8624 9844

The master row reproduces #4981's numbers exactly, which cross-checks the method. 3.10.6's RAM is dominated by a 38416 B gPioRxCaptureBuffers. All three builds link Serial/TinyUSB CDC through the Arduino-Pico core.

Docs only; bash lint passes.

Summary by CodeRabbit

  • Documentation
    • Added RP2040 no-Serial size comparisons for versions 3.10.3 and 3.10.6 alongside master, covering flash and RAM usage.
    • Clarified which builds include Serial/USB components and highlighted notable differences in RAM usage.

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 230934b and bb147cc.

Files selected for processing: 1
  • agents/docs/binary-size-analysis.md

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

Walkthrough

The RP2040 scorecard now compares matched no-Serial builds for versions 3.10.3, 3.10.6, and master. It reports flash and RAM measurements, Serial linkage, and identified RAM differences.

Changes: RP2040 scorecard

Layer / File(s) Summary
Matched build measurements
agents/docs/binary-size-analysis.md
Adds flash and RAM measurements for three RP2040 builds. Notes Serial/SerialUSB and TinyUSB CDC linkage, the 3.10.6 gPioRxCaptureBuffers allocation, and master’s 1 KB fl::detail registry.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Possibly related issues

  • #4760 — The scorecard provides the RP2040 three-version measurements requested by the issue, but does not cover all of its acceptance requirements.
  • #4770 — The scorecard performs the requested RP2040 comparison; the issue also requests further investigation and validation.

Possibly related PRs

  • FastLED/FastLED#4975 — Moves per-issue scorecards out of the shared analysis document, while this PR adds a scorecard to that document.
  • FastLED/FastLED#4981 — Records the RP2040 master scorecard that this PR extends with release measurements and RAM findings.
Merge Risk: Minimal · up to bb147

The scorecard adds internally consistent release comparisons and explicitly notes core Serial linkage. No concrete merge-blocking defect was established.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Linked Issues check Warning Directly linked issue #4770 has coding requirements that this PR does not address. Met in part: agents/docs/binary-size-analysis.md now records matched 3.10.3, 3.10.6 and master rp2040 no-Serial figur… Either (a) add to this PR a source-referenced investigation of the controller, settings, vtable and global-state costs for the three builds; an audit of FL_WARN to FL_LOG_* categories and fl::printf logging; and symbol and section deltas fo…
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the documented RP2040 no-Serial baseline measurements for FastLED 3.10.3 and 3.10.6.
Out of Scope Changes check Passed The diff changes one file: agents/docs/binary-size-analysis.md (+18/-2). The change adds the matched 3.10.3, 3.10.6 and master rp2040 Blink measurements, the compatibility edits, and the Serial/TinyUS…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Out of Scope Changes check

Explanation

The diff changes one file: agents/docs/binary-size-analysis.md (+18/-2). The change adds the matched 3.10.3, 3.10.6 and master rp2040 Blink measurements, the compatibility edits, and the Serial/TinyUSB linkage note. It also removes the outdated statement that release no-Serial numbers were unavailable. These changes relate directly to #4770's measurement and publication scope. No code, test, budget or build-system file changed. No unrelated change was found.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Full details: Linked Issues check

Explanation

Directly linked issue #4770 has coding requirements that this PR does not address. Met in part: agents/docs/binary-size-analysis.md now records matched 3.10.3, 3.10.6 and master rp2040 no-Serial figures (image flash, attributed RAM, physical RAM) and states that the Serial/TinyUSB CDC linkage remains in all three builds. The row deltas are arithmetically consistent (103212-78620=24592; 8624-7049=1575; 9844-8344=1500). The ratchet item needs no change: tests/data/rp2040_bloat_budget.json already holds image_flash 103212 and total_ram 8624 for master, and the PR does not raise any ceiling. Unmet: (1) the issue asks for investigation of controller, settings, vtable and global-state costs. The PR only names gPioRxCaptureBuffers (38416 B) and a 1 KB fl::detail registry; it gives no source-level cost analysis. (2) The issue asks for an audit of FL_WARN to FL_LOG_* categories and fl::printf logging. No such audit appears in the PR. (3) The issue asks for symbol and section deltas. The PR gives totals and two named symbols only. The parent #4760 publication and the child closure are administrative and were not assessed. The optimization branch is conditional. The PR claims no optimization, and it provides no evidence that optimization is or is not warranted. Build logs, preserved ELFs and maps are not in the repository, so the build claims could not be independently verified; this is noted, not counted as a failure. The PR also closes #4770 while these items remain open.

Resolution

Either (a) add to this PR a source-referenced investigation of the controller, settings, vtable and global-state costs for the three builds; an audit of FL_WARN to FL_LOG_* categories and fl::printf logging; and symbol and section deltas for 3.10.3 versus master, then re-assess; or (b) change the PR so it does not close #4770 and states that it covers only the baseline measurement and its documentation.

Finishing Touches
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@zackees
zackees merged commit 6636ef9 into master Oct 31, 2026
121 checks passed
@zackees
zackees deleted the docs/4770-rp2040-3-10-baselines branch October 31, 2026 20:15
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

chore(memory): redo rp2040 baseline with Blink without Serial

1 participant