mirror of
https://github.com/esphome/esphome.git
synced 2026-08-30 09:36:03 +00:00
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.