Skip to content

MaximumSize based eviction functionality is slow starting with version 3.1.2 #1047

Answered by ben-manes
alexursea asked this question in Q&A
Discussion options

You must be logged in to vote

I’d need to see a minimal test but it’s not wrong as described since we don’t use a policy like lru. For example if the workload is a loop then MRU is the optimal policy and the first entry would not be evicted. If random then all entries are equally good/bad to evict, so likewise it might keep the oldest. A pattern of popular entries would give the policy a reason to have a preference and evict the less valuable entries.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexursea
Comment options

Answer selected by alexursea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants