Skip to content

Question Regarding TinyLFU increment() #1016

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

You must be logged in to vote

I believe @gilga1983 intended to use that scheme in his GuessingBloomFilter, but NeedToIncrement is always true (sources). It was likely mentioned for background material and to help alleviate fears about a sketch's accuracy. As readers might take their new knowledge and apply it elsewhere, awareness of this boosting mechanism would avoid them suffering lower quality if their use-cases were less tolerant to error.

The simulator has an option to evaluate that approach, as well as a perfect histogram. In my analysis it did not make a noticeable improvement to the hit rate (noise) so the small cost was not worthwhile. You are welcome to perform a fresh analysis to see the impact.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ben-manes
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