Open yakra opened 1 year ago
Only tangentially related, just dropping this here... https://github.com/yakra/DataProcessing/blob/80f27243bf26579c53c6c7a215a5aeb22347317a/siteupdate/cplusplus/classes/WaypointQuadtree/WaypointQuadtree.cpp#L12
LOL this has compiled & run fine for years, never any warnings.
Replace the 4
FOO_child
pointers with 1child
orchildren
pointer. This gets sizeof down to 128, 2 cache lines' worth. Alignas(64).When refining,
aligned_alloc
space for 4 nodes, then use placement new to init.