Skip to content

perf(channels): framework redesign for single-driver sketches (post-release, from #4800) #4822

Open

Description

@zackees

Split out of #4800 (part of #4801) after a measured sweep found no remaining low-risk trims.

What #4800 landed

Related work under #4801 also cut the channels baseline:

What remains (esp32dev Blink, master 66846f1547)

About 4.9 KB in ChannelManager, EngineEvents and ChannelData, plus the RMT5 engine. All of it is functional:

  • ChannelManager: addDriver 262, constructor 186 (C1/C2 aliased, no duplicate cost), poll 179, waitForReady* 157 × 2, addDriverSlow 149, sort_small<EngineEntry> 132;
  • EngineEvents: dispatch about 122 each;
  • RMT engine: processPendingChannels 372, configureChannel 350, beginTransmission 331, createEncoder 304, acquireChannel 294, teardown 272 (kept by the virtual destructor), reconfigureForNetwork 219, attemptAllocationRecovery 163.

Candidate redesigns (post-release; each needs ci-full plus RMT autoresearch)

  1. Single-driver fast path: a sketch whose controllers all pre-bind one driver skips the registry, priority sort and frame-flush indirection.
  2. Make network reconfiguration and allocation recovery separable objects that link only when networking or multi-channel recovery is in use.
  3. Fold EngineEvents' per-listener dispatch into a single static frame hook for the common single-listener case.

Activity

  1. added
    priority: low
    platform: esp32
    area: core
    on Oct 9, 2026
  2. zackees commented on Oct 10, 2026

    @zackees
    MemberAuthor

    Deferred to after the release (maintainer decision, 2026-10-09). The #4801 pass is closed out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreplatform: esp32priority: low

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions