Bump allocators in Rust

65 points we_are_mammals 26 comments

Bun (a JavaScript runtime, written in Zig) received a lot of hype when it came out. One of the claims was that Bun is very fast, because it uses arena/bump allocators.

Do I understand it correctly that Rust could do this as well? It has libraries like bumpalo. Or are there hidden difficulties with this in Rust that are not apparent to a casual observer?