mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 19:16:06 +00:00
8b840e8517ec2a60b35818782f2a3dd140f7a5bf
The freelist holds the boot-peak count of recycled SchedulerItem*; items_, to_add_, and defer_queue_ hold the boot-peak vector *capacity* of live SchedulerItem*. std::vector grows by doubling and retains capacity even when items drain, so post-boot the vector slack can be larger than the freelist itself. Swap each with a same-content copy to size them exactly to their current contents. Live items are preserved -- the swap-copy idiom builds the new vector from the existing pointers, then the old (over-capacity) vector is destroyed.
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
614 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
