mirror of
https://github.com/esphome/esphome.git
synced 2026-07-11 01:15:33 +00:00
e14443b9c3
The compiler constant-folds ProtoSize::varint(42) to 1 and optimizes the entire inner loop to a single addition, causing ~62ns jitter-dominated measurements. Use varying inputs (i & 0x7F for small, 0xFFFF0000 | i for large) so each call computes a real result.