J. Nick Koston ea32fbb51d [light] Force-inline ColorModeBitPolicy::to_bit
Although to_bit is constexpr and header-defined, the compiler leaves
it as an out-of-line function when called with a runtime ColorMode,
costing a call0/call8 for what is a short linear search over a 10-entry
compile-time table. Marking it ESPHOME_ALWAYS_INLINE lets the compiler
fold the lookup into each caller (validate_, color_mode_to_human,
get_suitable_color_modes_mask_, light_json_schema). The to_bit symbol
disappears from the link output entirely.

Flash delta is small (+16 B ESP8266, +44 B ESP32-IDF in isolated light
build); the intent is the runtime win — CodSpeed will quantify it.
2026-04-13 17:20:04 -10:00
2023-06-12 17:00:34 +12:00
2022-09-06 15:48:01 +12:00
2025-12-21 09:26:03 -05:00
2024-03-28 10:20:51 +13:00
2025-07-17 22:40:28 +12:00
2026-04-07 22:29:55 +00:00
2025-12-08 14:37:45 -05:00
2026-04-09 11:28:48 +12:00
2025-07-17 22:40:28 +12:00
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 393 MiB
Languages
C++ 60.7%
Python 38.9%
C 0.3%