Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

LRU Cache is LRA(llocated) cache #405

Open
eile opened this issue Oct 19, 2017 · 0 comments
Open

LRU Cache is LRA(llocated) cache #405

eile opened this issue Oct 19, 2017 · 0 comments

Comments

@eile
Copy link
Contributor

eile commented Oct 19, 2017

LRUCachePolicy::insert is only called on cache insertion, getting an element does not move it to the front of the list. Therefore elements are deallocated based on their creation time, not last used. I'm working on a fix included in a general cache code cleanup.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant