mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 00:28:39 +00:00
c35b36b8e767d239c46361ad465500c1847ec211
Pass the already-fetched LightTraits from validate_() to compute_color_mode_() and transform_parameters_() instead of each calling get_traits() independently. This eliminates 2 redundant virtual calls through output_->get_traits(). As a side effect, the compiler inlines both functions into validate_(), eliminating their call overhead. Total hot path shrinks by 451 bytes.
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
594 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
