mirror of
https://github.com/esphome/esphome.git
synced 2026-09-13 08:17:34 +00:00
669a308209cdeda6fa647f5a4f41611507231005
Replace empty() + pop() with pop() directly as the fast-path check: - LockFreeQueue: pop() costs 1 memw (acquire on tail_) vs empty()'s 2 memw (acquire on both head_ and tail_) on Xtensa - FreeRTOSQueue: pop() is 1 critical section vs empty() + pop() = 2 Also move dropped count check after the drain loop since drops can only occur when the queue was full, and only this loop drains it.
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
613 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
