It's wonderfully easy to switch out the allocator in Rust: https://doc.rust-lang.org/edition-guide/rust-next/no-jemalloc.html Sadly it didn't help difftastic performance despite doing a lot of allocation, but it's really easy to try it!