Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support promotion iterator in TinyLFU mmContainer #25

Open
byrnedj opened this issue Oct 6, 2022 · 0 comments
Open

Support promotion iterator in TinyLFU mmContainer #25

byrnedj opened this issue Oct 6, 2022 · 0 comments

Comments

@byrnedj
Copy link

byrnedj commented Oct 6, 2022

Currently we don't support promotion iterator (starting at the head of the the container) for the TinyLFU implementation. This iterator would start iterating over the items with the highest frequency first - then moving down the container to items with lower access frequency.

See MMTinyLFU.h/MMTinyLFU-inl.h for details:

cachelib/allocator/MMTinyLFU-inl.h line 235 at r4 (raw file):

void
MMTinyLFU::Container<T, HookPtr>::withPromotionIterator(F&& fun) {
  throw std::runtime_error("Not supported");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant