2 ms·
Well, I hope we get custom allocation soon in Rust. Its really strange not having the same in an advertised system programming language. Can help in incidents
by lenkite 4y ago
Well, I hope we get custom allocation soon in Rust. Its really strange not having the same in an advertised system programming language.
Can help in incidents like the below:
https://www.svix.com/blog/heap-fragmentation-in-rust-applications/ https://www.svix.com/blog/heap-fragmentation-in-rust-applica...
- tomjakubowski 4y agoYou might want custom local allocators. You can already replace the global allocator with one designed to reduce fragmentation, as described in the article.
- Diggsey 4y agoYou can already do custom allocation in Rust. These efforts are about bringing support for custom allocators to the types in `std` so that you can combine use of a normal `Vec` with a custom allocator, instead of needing to definte your own `Vec` (or at least pull one in from a 3rd party crate).