3 ms·
> Are there any high level languages that have the ability to provision fast memory allocation pools like a slab where garbage collection occurs when the slab i
by JoshTriplett 10y ago
> Are there any high level languages that have the ability to provision fast memory allocation pools like a slab where garbage collection occurs when the slab is no longer accessible, for instance?
Rust has several slab allocation libraries, such as the "slab" crate. They use lifetimes to ensure that the slab outlives the objects stored in it.
- EdSharkey 10y agoThis is so rad.