-
Notifications
You must be signed in to change notification settings - Fork 125
feat(l1): make the database path-based #4806
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
This reverts commit 175de2d.
Benchmark for 956ca77Click to view benchmark
|
Benchmark for dad1d71Click to view benchmark
|
Benchmark for 17a5540Click to view benchmark
|
Benchmark for 5bfd315Click to view benchmark
|
| // Insert into self | ||
| self.update(value); | ||
| } else { | ||
| // Value in branches don't happen in our use-case. |
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.
then below it should be unreachable!?
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.
It can't happen in our use-case, but a user of ethrex-trie can still trigger this. We should first decide if we want to support this use-case: if we don't want to, then we can mark it as unreachable! and add a couple of checks to avoid reaching this branch, or we can add an unimplemented!, but we should document the lack of support for values in branches. I think leaving it as todo! for now would also be OK.
**Motivation** Fixes devp2p tests on the path based branch **Description** <!-- A clear and concise general description of the changes this PR introduces --> <!-- Link to issues: Resolves #111, Resolves #222 --> Closes #issue_number --------- Co-authored-by: Tomás Grüner <[email protected]>
Benchmark for 0511e66Click to view benchmark
|
Benchmark for bc689a9Click to view benchmark
|
Benchmark for 1fefeeaClick to view benchmark
|
Benchmark for 1afccbdClick to view benchmark
|
Benchmark for 9dd9887Click to view benchmark
|
Benchmark for 74f907dClick to view benchmark
|
Motivation
We want a path-based database:
Description
Support for "archive mode" (keeping indefinitely old state) is dropped.
To handle reorgs we use in-memory layers that exist on top of the db.