← Back to context

Comment by simonask

18 hours ago

If this works for the programs you write, that’s great. It does preclude you from using many great data structures with potentially better performance - especially hash maps. Rehashing is pretty detrimental to most arena allocators you can think of.

It is pretty tough to figure out how to structure it and I’m not 100% on it.

But, you can use hashmaps fine. Just need to think about it and structure the program well for it.

It becomes clear once you do it a couple of times