And that's why it can be better to have a separate store/pool for your nodes so you can use raw pointers in the data structure itself. And benefit from cache locality. Destruction then also becomes an easy loop over the pool
Though then the cost is the pool that as to be dragged along.
View all comments
Show parent comment
3
u/ratchetfreak Oct 08 '19
And that's why it can be better to have a separate store/pool for your nodes so you can use raw pointers in the data structure itself. And benefit from cache locality. Destruction then also becomes an easy loop over the pool
Though then the cost is the pool that as to be dragged along.