-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CHIA-1608] Use a cache eviction logic that matches our BlsCache usage pattern #758
[CHIA-1608] Use a cache eviction logic that matches our BlsCache usage pattern #758
Conversation
74b8c95
to
537630f
Compare
Pull Request Test Coverage Report for Build 11854445955Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you run the benchmark to compare against main
? I think that would be an interesting comparison.
Could you also make sure that it's OK to evict on a cache hit? i.e. that we never rely on two or more cache hits?
If there's a reorg we might get more cache hits, but we should probably not optimize for that case. If there are competing unfinished blocks is another example where we'll have multiple cache hits.
It might make sense to make the eviction explicit. When a block is fully validated and added to the chain it should be safe to evict its keys from the cache.
4b60431
to
795f6c4
Compare
d2f5947
to
f588a3b
Compare
f588a3b
to
a2d6656
Compare
a2d6656
to
e2f7365
Compare
No description provided.