mirror of
https://github.com/esphome/esphome.git
synced 2026-03-01 02:14:19 -07:00
94ea5bac3acdd4f5079f50d0f8fdcf0d41f11c95
Extract the keepalive ping sending logic from APIConnection::loop() into a separate noinline send_keepalive_ping_() method. This code only fires once per keepalive interval (~60s) making it cold relative to the ~111 Hz loop rate. Moving it out reduces loop() from 337 to 258 bytes, keeping the hot path smaller and more cache-friendly.
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
524 MiB
Languages
C++
64.1%
Python
35.5%
C
0.3%
