Skip to content
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

[MerkleDB] Make intermediate node cache two layered #2576

Merged
merged 9 commits into from
Jan 4, 2024
Merged

Conversation

dboehm-avalabs
Copy link
Contributor

The flushing of the intermediate nodes on db close is taking too long. Split the cache into two parts, one normal cache that can be large and store nodes in memory and one smaller delayed write cache that will prevent writes, but wont be too large to flush on database close.

@dboehm-avalabs dboehm-avalabs changed the title [WIP] [MerkleDB] Make intermediate node cache two layered. [MerkleDB] Make intermediate node cache two layered. Jan 2, 2024
@dboehm-avalabs dboehm-avalabs self-assigned this Jan 2, 2024
x/merkledb/proof.go Outdated Show resolved Hide resolved
@patrick-ogrady patrick-ogrady changed the title [MerkleDB] Make intermediate node cache two layered. [MerkleDB] Make intermediate node cache two layered Jan 3, 2024
@danlaine danlaine disabled auto-merge January 4, 2024 14:59
@danlaine danlaine merged commit 935bfe4 into dev Jan 4, 2024
17 checks passed
@danlaine danlaine deleted the CacheChange branch January 4, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants