Skip to content

A bug in WTinyLFU #162

Description

@SoftwareDogZ

In WTinyLFU.c (lines 306-312), the implemented functionality is: when both the window cache and main cache are full and the window_victim from the window cache wins the competition, the main_cache_victim from the main cache should be evicted. However, after completing the eviction, it should set evicted to true to stop further evictions. The statement evicted = true; is currently missing, which may cause multiple objects to be evicted unnecessarily during each replacement.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions