Skip to content

Replace LRU with SIEVE replacement policy#1971

Merged
ostafen merged 1 commit intocodenotary:masterfrom
ostafen:feature/sieve-caching-policy
May 17, 2024
Merged

Replace LRU with SIEVE replacement policy#1971
ostafen merged 1 commit intocodenotary:masterfrom
ostafen:feature/sieve-caching-policy

Conversation

@ostafen
Copy link
Contributor

@ostafen ostafen commented May 4, 2024

@coveralls
Copy link
Collaborator

coveralls commented May 4, 2024

Coverage Status

coverage: 89.491% (-0.001%) from 89.492%
when pulling 12ce94e on ostafen:feature/sieve-caching-policy
into fd9d1bb on codenotary:master.

Signed-off-by: Stefano Scafiti <stefano.scafiti96@gmail.com>
@ostafen ostafen force-pushed the feature/sieve-caching-policy branch from df033b1 to 12ce94e Compare May 17, 2024 08:42
@ostafen ostafen merged commit bde091c into codenotary:master May 17, 2024
}

c.lruList.MoveToBack(e.order)
atomic.StoreUint32(&e.visited, 1)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why atomic if both get/evict hold the lock?

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.

4 participants