mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 01:44:20 -07:00
6b9e1045c066f68a03694bcb8181397fa0391c85
Replace division-based line number formatting in LogBuffer::write_header with subtraction loops. The ESP8266 (Xtensa lx106) lacks a hardware divider, so each division compiles to an expensive software function call. Measured on real ESP8266 hardware (10000 iterations x 13 test values): - Division: 213,029 us - Subtraction: 118,503 us (1.8x faster) Flash savings: - ESP8266: -36 bytes (323 -> 287) - ESP32: -23 bytes (326 -> 303)
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
516 MiB
Languages
C++
64.1%
Python
35.5%
C
0.3%
