mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00: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
545 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
