mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 17:18:40 +00:00
b8e4343d862515f3e71e5f9576c36dc681ab9012
Split the single loop into two paths (with/without separator) to eliminate the per-byte branch on separator. In the separator path, write the separator unconditionally and overwrite the last one with the null terminator. This also lets the compiler use constant stride values (2 or 3) instead of a runtime variable. Benchmarks show ~16-20% improvement on the separator path (format_hex_pretty_to, format_mac_addr_upper).
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
597 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
