Tinkerforge / esp32-firmware

Firmwares for ESP32 Brick and ESP32 Ethernet Brick (including firmwares for WARP/WARP2 Charger, WARP Energy Manager)
https://www.tinkerforge.com/en/doc/Hardware/Bricks/ESP32_Ethernet_Brick.html
25 stars 20 forks source link

Optimize ConfObject heap usage by sharing common schemas. #302

Open rtrbt opened 9 months ago

rtrbt commented 9 months ago

There are multiple configs that are objects with exactly one key that is either "current" or "enabled". All of those can share the same schema, saving ~ 75 to 120 bytes per instance.