Re:Make your programs run faster by better using the data ca...
by sparkie on Saturday June 24, 2023 @03:11AM
(#36456348)
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.
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