|
|
|
|
|
by simonask
410 days ago
|
|
I don't see why you would have to write your own - there are plenty of options in the crate ecosystem, but perhaps you found them insufficient? As a video game developer, I've found the case for custom general-purpose allocators pretty weak in practice. It's exceedingly rare that you really want complicated nonlinear data structures, such as hash maps, to use a bump-allocator. One rehash and your fixed size arena blows up completely. 95% of use cases are covered by reusing flat data structures (`Vec`, `BinaryHeap`, etc.) between frames. |
|
Who writes the crates?