After merging and adding the preset save/load functionality here’s the binary size info:
text data bss dec hex filename
0x1ccf2 0x1cb0 0x4af08 432298 698aa ansible.elf
So if I’m figuring this right we’ve got 0x7E000 - 0x698AA = 0x14756 or about 82 kB left flash, or 16%.
Here’s master for comparison (30% available):
text data bss dec hex filename
0x1a5e2 0x18a4 0x3a278 352510 560fe ansible.elf
This approximately doubles the time it takes to save/load presets (from 10 seconds to a little over 20 seconds). That’s probably largely because it almost triples the size of the JSON file, (to about 1 MB) since Earthsea state has a more nested structure/fewer buffers compared to Kria, so the JSON structure is less compact. Branch is here.