Skip to content

Refactor weighted LFU behind specialized eviction policies - #830

Draft
bitfaster wants to merge 1 commit into
mainfrom
users/alexpeck/weighted-eviction-policies
Draft

bitfaster wants to merge 1 commit into
mainfrom
users/alexpeck/weighted-eviction-policies

Conversation

@bitfaster

@bitfaster bitfaster commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Based on #814, move LRU management and weighted accounting into eviction policies composed by struct node policies. Keep partition sizing and hill climbing in LfuCapacityPartition, and add the WithWeigher builder API without random admission or runtime weighting switches in the core.

This is intended as a cleaner factoring of the original logic.

Move LRU management and weighted accounting into eviction policies composed by struct node policies. Keep partition sizing and hill climbing in LfuCapacityPartition, and add the WithWeigher builder API without random admission or runtime weighting switches in the core.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 19b5083a-3f76-43f7-a193-8b4054cfdf13
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 98.507% (-0.7%) from 99.212% — users/alexpeck/weighted-eviction-policies into main

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

Successfully merging this pull request may close these issues.

2 participants