Continuing my UI experiments but in C++ land now.
Experimenting with an ECS-ish structure with data stored in separate arrays identified by id. Not sure it makes sense since most interaction with the data is not linear iterations, so I don't know how much data locality matters.
Currently putting the data in maps and I don't love having to worry about hash lookup being a cost. Could use array, but that comes with other issues.
Maybe should just go back to pointer tree of heterogenous objects.