3 ms·
Oops sorry.. Plain Old Data structures. Specifically I mean data structures that contain only basic types and no reference types or pointers. https://en.m.wi
by socmag 10y ago
Oops sorry.. Plain Old Data structures.
Specifically I mean data structures that contain only basic types and no reference types or pointers.
https://en.m.wikipedia.org/wiki/Passive_data_structure https://en.m.wikipedia.org/wiki/Passive_data_structure
Another important trick is to use structures of arrays, rather than arrays of structures. Well that kind of depends on the use case, but you can get huge wins in memory access if you need to scan only one field.
Same tradeoff as Row vs Column Databases.