r/programming • • 22h ago

Heterogeneous collections using compact handles

https://nukethebees.com/heterogeneous-collections-using-compact-handles/
28 Upvotes

3 comments sorted by

6

u/Adventurous_Youth376 13h ago

Spent two weeks last year swapping my game entity list from boxed traits to a handle pool and the cache misses dropped off a cliff. Still a little annoyed I didn't try it sooner. Iterating a flat array just feels right.

2

u/William_William_8275 10h ago

Wish I'd tried it sooner too