mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 17:18:40 +00:00
09648b86f9a1bc5d3912408feb30bf099e1599a4
For non-first batch messages, fold the payload resize into the reserve_and_resize call. This eliminates a redundant size() read, a redundant capacity check, and an extra jump on the hot path. Saves 17 bytes in encode_to_buffer (130 → 113) and ~5 instructions on the second-message path.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
597 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
