Simplify Eviction Scan Logic #1868
SirTyson
started this conversation in
Core Advancement Proposals
Replies: 1 comment 3 replies
-
|
The initial CAP PR suggests that we have a I agree that memory overhead is small, the time overhead might be problematic:
This could still be fine in the absolute terms, but I think it's worth at least spending some time considering other potential options or optimizations. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We would like to simplify the eviction scan process such that we evict entries in order of (
liveUntilLedgerSeq,LedgerKey), where we evict entries with the lowestliveUntilLedgerSeq(i.e. the oldest expired entries) first. This will not only make eviction scans more performant, as we can leverage the in-memory soroban state and remove disk reads from eviction scans, but we will also be able to simplify the process significantly.Beta Was this translation helpful? Give feedback.
All reactions