Repository navigation
fix(memory): compact channel and color profile configuration layouts - #4750
Merged
Merged
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (8)
✨ Finishing Touches📝 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 |
This was referenced Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ColorProfileBindingandChannelOptionsmembers to remove padding without changing defaults, ownership or supported settings.Refs #4744 and #4737. Close the child after landed-master size verification and the cumulative parent comment; leave the meta open.
Measured local evidence
Starting master
8d6ed12ccbac48ccc9b3708b2d537ee3a2a6c921; historical 3.10.320667c3a6413ed46a828f78ec95fb57e58d753f8. fbuild 2.5.37, STM32duino 2.9.0, arm-none-eabi-gcc 15.2.1, identical board configuration and normal flags. Sequential builds in the existing.build/fbuild/stm32f103c8project; no git worktrees, no CI Full.Remaining historical gap: published +10264 B flash / +232 B RAM; controlled +9432 / +232. No claim of parity.
Image flash 26368 → 26356, attributed RAM 1940 → 1932; here both reductions agree with board totals. The controller symbol shrinks 140 → 132 bytes. Host binding shrinks 80 → 72 bytes. The first binding-only candidate saved 4 attributed bytes but rounded board totals stayed flat, so it was not claimed as a completed platform reduction.
Validation
3.10.3/master fbuild bloat reports and matched symbol ledger, published and controlled examples, same framework/caches.
Focused binding-size test RED (80 > 72), immediately rerun with sanitizers before editing; all 52 color-profile sanitizer cases GREEN after final layout.
Starting master fails both new size ceilings; final candidate passes
bash bloat stm32f103c8 --budget tests/data/stm32f103c8_bloat_budget.json.Tiny-tier no-growth probe uses <= the frozen legacy layout; compact layouts may shrink. No thresholds raised.
Recompiled staged translation units with compile-only assertions to validate header changes after suspect incremental results; source/framework caches retained.
bash test --cpp: 319/319 unit targets and 95/95 examples passed.bash lintpassed; all changed files reviewed against repository code-review rules with no findings.All fields and source APIs remain available, including RGBW/RGBWW, emitter profiles, gamma, typed buses and bus instance selection. As usual for C++ member-layout changes, consuming code must be rebuilt together with the library; no binary-layout compatibility claim.
Logging audit: STM32 clockless operational logging already uses categories; remaining warnings in peripheral implementations describe invalid configuration, unsupported hardware or failures. No fl::printf logging calls in STM32/channel implementation. Linked libc printf primarily remains for explicitly used Serial/framework behavior; no such features removed.
Shared-change local verification
Both platforms passed their existing default budgets. Image-flash ceilings are ratcheted down again (C3 385622 → 385596; C6 403818 → 403794), with no RAM ceiling raised. C6 singleton storage is not represented in attributed RAM; its board totals show the additional 16-byte saving. All platform builds run locally and sequentially.
Summary by CodeRabbit