Files
esphome/esphome/components/api
J. Nick Koston 481c0688ad [api] Split write_protobuf_packet into dedicated virtual for single messages
Instead of routing single messages through write_protobuf_messages and
branching internally, make write_protobuf_packet a separate virtual
override in each frame helper. The single-message path gets its own
minimal stack frame with no StaticVector allocation, and the batch
path in write_protobuf_messages has no size==1 branch — each caller
picks the right method upfront.
2026-03-29 10:32:00 -10:00
..