Files
esphome/esphome
J. Nick Koston fe012272f8 [api] Merge tag + value into single __restrict__ scope in encode_uint32/uint64/bool/fixed32
Each of these methods called encode_field_raw() then a value encoder,
causing a store-load pair on pos_ between the tag and value writes.

Inline the tag write into the same __restrict__ local scope as the
value write so the compiler can emit tag + value with a single pos_
load at start and store at end. Verified on Xtensa: encode_uint32
now does one load + two writes + one store (was load-store-load-store).
2026-03-28 22:06:31 -10:00
..