mirror of
https://github.com/esphome/esphome.git
synced 2026-09-17 01:58:39 +00:00
956977bd4bd51236d8265daa70f850c6d5e6c256
The noise frame helper was calling state_action_() (447 bytes) on every read_packet() and write_protobuf_messages() call. In the DATA state (steady-state after handshake), this function falls through all handshake checks and returns OK — pure overhead on every encrypted packet. Add check_data_state_() inline helper that replaces the call with a single byte-load + branch instruction in the hot path. The handshake state machine continues to be driven by loop() as before. Also applies consistent state checking to the plaintext frame helper.
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
596 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
