Convert memory pool data structure from queue to stack
PJungkamp opened this issue · comments
A memory pool should probably be a stack data structure to improve cache hits.
Currently a just deallocated "hot" sample in a pool is put at the pool queues end.
While an allocation always takes a "cold" sample from a pools front.
A stack on the other hand will handout the last deallocated sample, which might still be in cache.