Skip to content

spike: measure channel-only worker configuration - #5020

Closed
zackees wants to merge 2 commits into
spike/5001-core-baselinefrom
spike/5001-channel-only-worker-config
Closed

zackees wants to merge 2 commits into
spike/5001-core-baselinefrom
spike/5001-channel-only-worker-config

Conversation

@zackees

@zackees zackees commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

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 is f9beb26cee26d48a6d7213c1c1464f157a133754.

Comparison Allocated flash delta Binary delta Static DRAM delta
Default legacy, removal only 0 B 0 B 0 B
Former Core1 legacy call → legacy without affinity request −192 B −192 B 0 B

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 in agents/tasks/issue-5001-core-spike.md. All seven changed production headers match the copies used by the measured candidate build.

Validation:

  • All five ESP32-S3 compile/measurement cases passed; original AutoResearch sketch restored.
  • Negative template-API regression verified RED then GREEN in debug mode.
  • 217 changed Python tests passed.
  • Lint and independent source/report review passed.
  • bash test --cpp --debug: 329 unit groups and 95 examples passed (292.50 seconds including setup).
  • Restored canonical AutoResearch ESP32-S3 integration build passed.

Refs #5001. No production merge or release requested by this spike.

@zackees zackees added ci-platform:esp32s3 Select FastLED board CI cells ci-platforms-unit-test Full native unit + Python + host example suites on Linux/Windows/macOS; no boards labels Nov 5, 2026
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • 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

@fastled-project-sync fastled-project-sync Bot moved this to In Progress in FastLED Tracker Nov 5, 2026
@zackees
zackees changed the base branch from master to spike/5001-core-baseline November 5, 2026 00:30
@zackees zackees closed this Nov 5, 2026
@fastled-project-sync fastled-project-sync Bot moved this from In Progress to Done in FastLED Tracker Nov 5, 2026
@zackees
zackees deleted the spike/5001-channel-only-worker-config branch November 17, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-platform:esp32s3 Select FastLED board CI cells ci-platforms-unit-test Full native unit + Python + host example suites on Linux/Windows/macOS; no boards

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant