Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
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.
Superseded by production PR #5022, which implements the accepted Channels-only core affinity design on the named-priority base. This spike remains a historical measurement record against its pinned older baseline.
Spike for #5001: remove worker-core template arguments from legacy
addLeds<>and slim controllers, preserving bus/bus-instance selection and custom chipset encoding. Core and priority remain in channel add configuration. AutoResearch rejects explicit legacy affinity requests and retains its default-policy path.This is a draft experiment for evaluating the API change. The primary memory comparison uses legacy
addLeds<>on both revisions; ordinary legacy use saves zero flash and static DRAM bytes.The draft targets
spike/5001-core-baseline, pinned to the measured baseline below. Priority feature #5018 merged into master during the experiment and changes the same template surface. Keeping the original baseline makes this a clean, reproducible experimental diff; it does not replace or revert that feature on master. These measurements predate the named-priority change.Matched ESP32-S3 measurements: six WS2812B strips × 170 LEDs, GPIO 1–6, LCD clockless (
Bus::FLEX_IO), log level zero, fbuild 2.5.51, Arduino 3.3.11/IDF 5.5.5, GCC 14.2.0. Baseline isf9beb26cee26d48a6d7213c1c1464f157a133754.The second row removes the caller's affinity request, so it is not equivalent scheduling behavior. The target reports legacy-controller size 52 B before and after. The RAM column excludes runtime heap and task-stack allocations. The unchanged 45,056-byte shared IRAM/DRAM reservation is separate from DRAM data+BSS. No free-heap or hardware-run claim.
The primary caller uses only legacy
FastLED.addLeds<..., Bus::FLEX_IO>. Earlier Channel-migration figures changed APIs and were wrongly emphasized in the initial explanation; they are excluded from this removal result and retained only in a separate report appendix. The exact reproduction sketch, full legacy totals, measurement definitions and limitations are inagents/tasks/issue-5001-core-spike.md. All seven changed production headers match the copies used by the measured candidate build.Validation:
bash test --cpp --debug: 329 unit groups and 95 examples passed (292.50 seconds including setup).Refs #5001. No production merge or release requested by this spike.