mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 00:31:58 +00:00
8da986d41a1e1364d0f4a717c38713bc7efcab07
Replace three compiler-generated switch tables (CSWTCH) with PROGMEM lookup tables, saving 84 bytes of DRAM on ESP8266. - model_str_(): 56B string pointer table → PROGMEM_STRING_TABLE - get_height_internal(): 14B byte table → PROGMEM struct array - get_width_internal(): 14B byte table → PROGMEM struct array Width and height use a single ModelDimensions struct array for maintainability. All 14 enum values verified with static_assert.
Description
Languages
C++
64.3%
Python
35.4%
C
0.2%
