mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 11:06:04 +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
605 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
