boxcar icon indicating copy to clipboard operation
boxcar copied to clipboard

Avoid contention when allocating buckets

Open ibraheemdev opened this issue 3 years ago • 0 comments

Currently threads allocate the next bucket when the last bucket is full, we can instead allocate at half-way/three-quarters into the last bucket to avoid contention. This may make it more feasible for threads to race to allocate instead of locking.

ibraheemdev avatar May 05 '22 21:05 ibraheemdev