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

Backport PR 3050 to v0.27 to reduce memory and speedup checkpoint by splitting trie into subtries #3339

Merged
merged 3 commits into from
Oct 6, 2022

Conversation

fxamacker
Copy link
Member

Backport PR #3050 from master to branch v0.27.

NodeIterator is modified to receive *node.Node instead of *trie.MTrie.
Replace very large Go map holding all unique nodes with
smaller map of each subtrie to:
- reduce operational memory by 37GB
- reduce allocs by 19.6 million (50% of serialization allocs)
- reduce duration by 2.7 minutes
@fxamacker fxamacker merged commit 687045a into v0.27 Oct 6, 2022
@fxamacker fxamacker deleted the fxamacker/port-3050 branch October 6, 2022 14:34
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.

3 participants