You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ChannelManager eagerly initialises every platform channel driver once linked (+~11 KB on Teensy 4.x) #4618
While measuring #4599 (Teensy 4.x slim bridge, merged as #4617), the teensy41 Blink flash grew from 63,284 B to 84,262 B (+20,978 B). The breakdown:
About +11 KB: once ChannelManager is linked, its init path starts every Teensy channel driver (FlexIO, the SPI adapters, and so on), not only the one the sketch uses.
If a platform's channel init eagerly constructs all engines, every slim-bridge conversion there pays for drivers the sketch never uses. This is the biggest cost blocking a flash-neutral slim bridge on Teensy 4.x, and probably on RP (slim bridge: RP2040/RP2350 PIO clockless #4589).
Ask
Audit each platform's init_channel_driver_* / initChannelDrivers() (Teensy 4.x, RP, SAMD, STM32, nRF52, LPC). Find which drivers get constructed and linked just by ChannelManager being referenced.
Make registration opt-in, matching ESP32: only the bus a BusTraits<Bus::X>::registerWithManager() names gets linked.
Activity
fix(channels): stop linking every platform driver from opt-in registr…