Re:Moving from TypeScript to Rust / WebAssembly
by laurencerowe on Thursday July 09, 2020 @02:09AM
(#23777408)
That's a fair point, I should distinguish heap allocation from reference counting. It still seems somewhat tricky to replicate the well proven arena allocation approach of Apache and Nginx which avoids memory fragmentation in current stable Rust though.
[ Parent
| on HN ]
Re:Moving from TypeScript to Rust / WebAssembly
by kd5bjo on Thursday July 09, 2020 @03:44AM
(#23777887)
For general areana allocation, you can use something like the Bumpalo crate: https://docs.rs/bumpalo/3.4.0/bumpalo/