News for hackers. Stuff that matters.
Re:Custom Allocators in Rust by lenkite on Saturday April 08, 2023 @12:54PM (#35495186)
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-applica...

Re:Custom Allocators in Rust by tomjakubowski on Saturday April 08, 2023 @01:31PM (#35495605)
You might want custom local allocators. You can already replace the global allocator with one designed to reduce fragmentation, as described in the article.
Re:Custom Allocators in Rust by Diggsey on Saturday April 08, 2023 @01:49PM (#35495802)
You 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).