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

Update merkle cache to be FIFO instead of LRU #1353

Merged
merged 10 commits into from
Apr 19, 2023
Merged

Update merkle cache to be FIFO instead of LRU #1353

merged 10 commits into from
Apr 19, 2023

Conversation

dboehm-avalabs
Copy link
Contributor

Merkle cache has to lock on reads because it is updating the underlying LRU. Removing that write lock and switching it to a read lock should allow for better concurrent reading from the merkle db.

@danlaine danlaine merged commit bb4029e into dev Apr 19, 2023
@danlaine danlaine deleted the UpdateMerkleCache branch April 19, 2023 14:36
joshua-kim pushed a commit to joshua-kim/avalanchego that referenced this pull request Apr 28, 2023
Co-authored-by: Stephen Buttolph <stephen@avalabs.org>
@patrick-ogrady patrick-ogrady added this to the v1.10.1 milestone Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants