mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 08:41:59 +00:00
6d1281301fbbb2d5e9572fd9969a898866d02fbf
Read all available bytes in batches via read_array() instead of byte-at-a-time read() calls. Each read() internally chains through read_byte -> read_array(1) -> check_read_timeout_ -> available(), resulting in 3 UART calls per byte. Batching reduces this significantly.
Description
Languages
C++
64.3%
Python
35.4%
C
0.2%
