Repository navigation
perf(channel): gate bus-miss diagnostic probe in release builds (#2952) - #2953
Conversation
resolveDynamicDriver runs per-frame for non-pre-bound channels. The
diagnostic block at channel.cpp.hpp:414-438 includes:
- the per-frame `driver->getName() != busKey` virtual-call +
fl::string compare (deciding silent-miss vs. diagnosed-miss),
- the silent `ChannelManager::findDriverByName(busKey)` probe (used
only to differentiate the FL_ERROR message),
- mBusWarned reads/writes,
- the empty `if (!driver) {}` branch with the no-compatible-driver
FL_ERROR.
In release builds the FL_ERROR bodies collapse to do-while-0, but the
surrounding code still runs — burning cycles + flash bytes for an
unrendered diagnostic.
Gate the whole block on FASTLED_LOG_RUNTIME_ENABLED. The functional
`return driver` is preserved unconditionally; only the diagnostic
side-effect is gated.
Same dead-strip cascade pattern as #2918 / #2925 / #2929 / #2943 /
#2950.
Closes #2952. Refs #2886.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR gates the per-frame bus-key miss diagnostic probe behind ChangesBus-miss diagnostic gating
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Summary
Behavior matrix
Test plan
Closes #2952. Refs #2886.
🤖 Generated with Claude Code
Summary by CodeRabbit