Skip to content

question about implements LRU policy #2316

Answered by lzhangzz
xiaoxiangshusheng asked this question in Q&A
Discussion options

You must be logged in to vote

Even though timestamp is cumulative, blocks_[i].timestamp < blocks_[j].timestamp still implies i is used less recently than j.

Notice that the blocks of a sequence is touched in reversed order. This enforce the blocks in the back of a sequence is evicted before blocks in the front of the sequence.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xiaoxiangshusheng
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
Converted from issue

This discussion was converted from issue #2315 on August 15, 2024 07:16.