mirror of
https://github.com/esphome/esphome.git
synced 2026-09-20 03:28:41 +00:00
d36c56d3f5cb165323b563e17d65e4c0c64f16d4
Boot churn (component init, first sensor reads, retries) inflates the freelist beyond the steady-state high-water mark. Without a one-shot trim that peak would be retained forever. Adds Scheduler::trim_freelist() and schedules it from Application::setup() to fire SCHEDULER_FREELIST_TRIM_DELAY_MS (10s) after setup completes -- well past the bulk of post-setup async work. Items currently in items_/to_add_/defer_queue_ are untouched; only the freelist's recycled items are deleted. Post-trim, the freelist regrows to the new (post-startup) high-water mark.
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
599 MiB
Languages
C++
55.7%
Python
43.7%
C
0.3%
JavaScript
0.2%
