-
Notifications
You must be signed in to change notification settings - Fork 146
feat(l1): snap sync optimizations #4777
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
Conversation
Benchmark for d960b58Click to view benchmark
|
Benchmark for 27e30deClick to view benchmark
|
Benchmark for a5dd3a7Click to view benchmark
|
+ linting
Benchmark for 822ad39Click to view benchmark
|
Benchmark for 932000dClick to view benchmark
|
Benchmark for 6ac36c3Click to view benchmark
|
Benchmark for 9739147Click to view benchmark
|
| ] | ||
| metrics = ["ethrex-blockchain/metrics", "ethrex-l2/metrics"] | ||
| rocksdb = ["ethrex-storage/rocksdb"] | ||
| rocksdb = ["ethrex-storage/rocksdb", "ethrex-p2p/rocksdb"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we avoid coupling p2p with the specific db implementation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. A priori is not that easy to decouple it, and we need these optimizations. I'll file an issue to tackle this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fedacking, please file the issue to tackle this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in #4807
| for (account_hash, account) in account_states_snapshot { | ||
| trie.insert(account_hash.0.to_vec(), account.encode_to_vec())?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is missing calls to the metrics module. The "inserting accounts" progress stays at 0% even when we're past that stage.
Motivation
This PR reintroduces the optimizations reverted in #4734, now fixed. There were two problems with it:
Description
Closes #issue_number