sharded-slab icon indicating copy to clipboard operation
sharded-slab copied to clipboard

investigate using mmap for shard storage

Open hawkw opened this issue 5 years ago • 0 comments

we should look into replacing the vector of pages with a growable mmaped region. then, when we need more pages, rather than hitting malloc to make a big vec, we can increase the size of the mem map. growing a shard could potentially be much faster.

the downside is that this inherently means a bunch more unsafe code. it could be feature-flagged, but i'm not sure if it would be worth maintaining 2 impls.

hawkw avatar Apr 02 '20 18:04 hawkw