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

all:Remove trie cache journal period #595

Merged

Conversation

huyngopt1994
Copy link
Collaborator

Remove the trie cache journal logic

We will have logic for flushing the clean trie cache to disk (triecache) periodcally and load it into triedatabase as warmup when the node starting for enhancing the performance in query

The cache will be updated in 2 logics

  • When get Node, when it doens't exist in cache, get from db and load to cache
  • When Put new Node
    This removing will be trade off between a sightly decrease in performance and robutness

E.g. https://github.com/ethereum/go-ethereum/blob/master/core/blockchain.go#L649
we may stop at the incomplete state in repair procedure if the root node is found in
clean cache.

ethereum/go-ethereum#27525 (comment) Benchmarking performance, 99.99 wil be impacted but not too much.

@huyngopt1994 huyngopt1994 merged commit 483ba28 into path-base-implementing Oct 4, 2024
1 check passed
@huyngopt1994 huyngopt1994 deleted the remove-trie-cache-journal-period branch October 4, 2024 10:21
Francesco4203 pushed a commit that referenced this pull request Oct 17, 2024
huyngopt1994 added a commit that referenced this pull request Oct 25, 2024
huyngopt1994 added a commit that referenced this pull request Nov 21, 2024
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.

2 participants