mirror of
https://github.com/esphome/esphome.git
synced 2026-08-31 10:06:03 +00:00
4d4b77f9fcd11be0deffe5c372733a8635cb4698
Add a new message-level option (inline_encode) that causes the code generator to inline sub-message encoding directly into the parent's encode/calculate_size methods instead of going through the encode_sub_message function pointer indirection. When set on a sub-message type, the generator: - Inlines field encoding directly (no function pointer, no backpatch overhead) - Inlines size calculation (no separate method call) - Skips generating standalone encode/calculate_size methods - Validates at generation time that max encoded size < 128 bytes Applied to BluetoothLERawAdvertisement which is encoded 12 times per BLE advertisement batch in a hot loop.
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
584 MiB
Languages
C++
56.2%
Python
43.2%
C
0.3%
JavaScript
0.2%
