-
Notifications
You must be signed in to change notification settings - Fork 4
refactor(data): Change the way how we represent and convert Merkle trees #535
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 results for revision c49c6d6:
Full results
Compare the results above with those for the default branch. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #535 +/- ##
==========================================
- Coverage 91.26% 91.26% -0.01%
==========================================
Files 110 108 -2
Lines 20197 20233 +36
Branches 20197 20233 +36
==========================================
+ Hits 18433 18465 +32
- Misses 1388 1392 +4
Partials 376 376 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
2f8c160 to
f3c6103
Compare
d41c000 to
02848d5
Compare
02848d5 to
dbf6d33
Compare
dbf6d33 to
93c06bd
Compare
|
I went through the diff. I added docs to everything new that I created with public visibility or what I moved and kept the public visibility. Let me know if I've missed anything! |
vapourismo
left a comment
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.
The commit message makes it appear like it should be 3 commits.
93c06bd to
ce00131
Compare
|
I noticed this PR hasn't received updates in a bit and currently can't land due to the merge conflicts. I'm marking this as draft for now. |
ce00131 to
32676a5
Compare
841cce4 to
eba7d33
Compare
kurtisc
left a comment
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.
The commit message title isn't clear, I don't want understanding the most prominent part of a public commit depend on having access to the private Linear tickets. The title should explain what applying this commit does, see https://github.com/tezos/riscv-pvm/blob/main/docs/contributing/commit-messages.md.
I don't think the (data) scope in the title is correct or necessary, which means you'd have more space. Ideally the title is <= 50 characters but this isn't consistently followed in this repo.
Finally, the tense used for the body of the git commit should be present, as it's what the patch is 'doing'. The body lists three things, one of which is a replacement for removing another. That makes me think this should have been two commits, one for changing to use a struct and the other for replacing impl_modify_map_collect.
|
Ok. I tried to address your comments regarding the commit message. As for splitting the change into two commits. I prefer to keep it as is. |
eba7d33 to
5b7073a
Compare
It's almost there but I'd change it to While the title should be imperative, the body can still be present tense, active voice.
Sure. I think splitting it in this PR is more effort than it's worth but it's easier to review future PRs that keep them separate. |
5b7073a to
8b65a1c
Compare
|
Updated the commit message. Thanks for the review! |
emturner
left a comment
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.
some initial comments
df56110 to
8821f63
Compare
2ab6063 to
ff33af1
Compare
- Removes MerkleTree::Leaf tuple with a struct - Removes the impl_modify_map_collect function - Replaces the uses of the mentioned function with a non-recursive direct implementation.
ff33af1 to
693f480
Compare
Relates to RV-829
What
Why
We need to store data in the internal nodes of Merkle-like trees. This PR is part of that effort.
How
Remove
impl_modify_map_collectand replace it with something more flexible. Extract the leaf data from theMerkleTreeso that it's easier to operate on it.Manually Testing
Regressions
Tasks for the Author