VILLASframework / node

Connecting real-time power grid simulation equipment

Home Page:https://fein-aachen.org/projects/villas-node/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.