mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 02:56:01 +00:00
c6938adb610fe5d5e204330fba35e33ac4592ade
Apply the same __restrict__ local pointer pattern proven in encode_varint_raw_64 to all remaining methods that write through pos_: encode_varint_raw, encode_varint_raw_short, write_raw_byte, encode_raw, write_tag_and_fixed32, encode_string, encode_bool, and encode_fixed32. Each method now hoists pos_ into a __restrict__ local before writing and stores back once at the end. When the compiler inlines these into a generated encode() method, it can keep pos_ in a register across consecutive calls instead of reloading from memory after every write.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
585 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
