▲ | dinfuehr 7 days ago | ||||||||||||||||
Would this mean that each shape/structure/map get its own vector for each field in order for this to work? | |||||||||||||||||
▲ | aapoalas 7 days ago | parent [-] | ||||||||||||||||
That would be one way; it would offer the best theoretical memory layout for well-behaved programs. But, I expect it to be very painful to work with and to come with some performance penalties in mixed use cases due to the extra indirection required. No, my thinking is that properties would be stored into tables based on their size class: All objects that have 4-7 properties are in the same table, and all of their first property would be in the same slice, second property in another etc. | |||||||||||||||||
|