4 ms·
The slab reference allocator from the challenge does that, but adds a segmented approach where the memory is allocated in N sized blocks. Go has decent support
by codr4life 10y ago
The slab reference allocator from the challenge does that, but adds a segmented approach where the memory is allocated in N sized blocks. Go has decent support for doing these kinds of tricks; but nothing really runs faster since there's still too much magic behind the scenes. I suspect the story is the same in Rust land but I honestly never got passed the lifetime hump, too much ceremony for me.
- Jweb_Guru 10y agoThere's not really much runtime magic in Rust (pretty comparable to C++), and arenas are definitely a performance benefit in many cases.