mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 00:58:40 +00:00
dd200c0522fdeea3908840aa77d4177b3c51923d
Move the fast-path checks from cleanup_(), process_to_add(), and process_defer_queue_() into inline methods in the header. The common case — nothing to clean up, nothing to add, nothing deferred — now resolves with just an atomic load at the call site, avoiding a function call into the .cpp translation unit entirely. The slow paths remain in scheduler.cpp as cleanup_slow_path_(), process_to_add_slow_path_(), and process_defer_queue_slow_path_(). Also moves the process_defer_queue_() body out of the header into the .cpp file, reducing code bloat in every translation unit that includes scheduler.h.
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
604 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
