mirror of
https://github.com/esphome/esphome.git
synced 2026-07-11 01:15:33 +00:00
24f380a67a52be4502097519331c80308d8f1d47
Add APIBuffer::reserve_and_resize() to eliminate duplicate grow_() capacity checks when reserve() is immediately followed by resize(). This saves one grow_() check per call site (~12 bytes each). Simplify set_nodelay_for_message() Nagle batching state machine by replacing the NODELAY_ON (-1) sentinel with a simple counter starting at 0. Reduces branches from 5 to 3 with identical behavior verified by exhaustive testing of all 2^N message sequences up to length 12. Saves 32 bytes flash on ESP8266.
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
549 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
