ccommon icon indicating copy to clipboard operation
ccommon copied to clipboard

option to preallocate in contiguous memory in cc_pool

Open kevyang opened this issue 6 years ago • 0 comments

We should allow the option to force contiguous memory for preallocated pools of objects. This may be useful for resource pools where we want memory locality.

This most likely already happens because preallocation calls the allocate function in a tight loop. However, we rely on the memory allocator for this behavior, and depending on the implementation of it we may or may not actually end up with contiguous memory for a preallocated pool.

kevyang avatar Aug 23 '18 22:08 kevyang