1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00
Files
esphome/esphome/components
J. Nick Koston cfbeea9983 [dlms_meter] Batch UART reads to reduce per-loop overhead
Replace byte-at-a-time read_byte() calls with batched read_array()
in loop(). 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.

Also uses vector insert() for bulk append instead of per-byte
push_back(), and caps reads to remaining buffer capacity upfront
to avoid over-reading from UART.
2026-02-07 00:22:00 +01:00
..
2025-06-11 17:06:45 +12:00
2025-06-11 17:06:45 +12:00
2025-06-11 17:06:45 +12:00
2025-06-11 17:06:45 +12:00
2025-10-22 22:24:17 -04:00
2025-12-08 14:37:45 -05:00
2025-06-11 17:06:45 +12:00
2025-10-06 16:10:46 -04:00
2025-11-04 10:45:32 +13:00
2025-06-11 17:06:45 +12:00
2025-11-01 17:45:42 +11:00
2025-06-11 17:06:45 +12:00
2025-12-08 14:37:45 -05:00
2025-06-11 17:06:45 +12:00