Files
esphome/esphome
J. Nick KostonandClaude Opus 4.6 244e672b0a Revert force-inlining of calc_uint32 and calc_length
The ESPHOME_ALWAYS_INLINE on these caused significant flash bloat in
cold calculate_size() callers (DeviceInfoResponse +117B, HelloResponse
+63B, ListEntitiesEventResponse +79B) while only benefiting the BLE
hot path marginally. Let the compiler decide when to inline these.

The varint() fast path remains force-inlined as that eliminates the
most expensive indirect calls on the hot path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 15:28:06 -10:00
..