4 ms·
See SHAPES[1] for a method of selecting data layout without sacrificing the abstraction programmers are typically used to having in OOP. The idea is that a "la
by sparkie 3y ago
See SHAPES[1] for a method of selecting data layout without sacrificing the abstraction programmers are typically used to having in OOP.
The idea is that a "layout" is decoupled from the object that stores the data. Layouts are attached to a memory pool which is used to allocate objects. The same object representation can have its data laid out in multiple ways depending on which pool allocates it.
[1]https://www.doc.ic.ac.uk/%7Escd/ShapesOnwards.pdf https://www.doc.ic.ac.uk/%7Escd/ShapesOnwards.pdf