mirror of
https://github.com/esphome/esphome.git
synced 2026-09-01 10:36:01 +00:00
441ec35d9fd678f482d7c29d42d78dc421e9f6c6
Replace byte-at-a-time read_byte() calls with batched read_array() in all three Seeed MR sensor components. Each read_byte() internally chains through read_array(data, 1) -> check_read_timeout_(1) -> available(), resulting in ~3 UART driver calls per byte. Batching into a 64-byte stack buffer reduces this to ~3 calls per loop iteration regardless of how many bytes are available.
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
587 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
