mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 09:54:19 -07:00
25b979bbede2d88e805a1dc682f17fc16bd4fb6d
When the scheduler lock is already held, atomic loads of the remove flag don't need acquire ordering — the mutex provides all necessary synchronization guarantees. Add is_item_removed_locked_() helper that uses memory_order_relaxed and use it in all _locked_ call sites. This eliminates redundant memw barriers on Xtensa, saving 12 bytes in matches_item_locked_ (152 → 140 B) and reducing pipeline stalls in the scheduler hot path.
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
517 MiB
Languages
C++
64.1%
Python
35.5%
C
0.3%
