Files
esphome/esphome
J. Nick Koston c35b36b8e7 [light] Pass LightTraits to compute_color_mode_ and transform_parameters_
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.
2026-04-02 13:46:30 -10:00
..
…
…
…
…