mirror of
https://github.com/esphome/esphome.git
synced 2026-09-26 22:40:21 +00:00
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.