-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat: trie diff tool #630
feat: trie diff tool #630
Conversation
d7ec054
to
c45ed15
Compare
03e9033
to
26e547a
Compare
Squashing the PR as it gets quite tedious to rebase on top of the |
feat: extract tries from the prover fix: implement trace decoder observer update: trie diff main fix: refactor fix: debug save tries to disk add comparison and printout fix: cleanup 1 fix: cleanup 2 fix: fmt fix: printout fix: review 1 fix: review 2 - commments fix: review 3 - collect_debug_tries fix: review - refactor of errors fix: cleanup error fields fix: rebase
2821aed
to
8825ea8
Compare
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.
no blockers, nice work on the error refactoring
cpu_res?; | ||
}; | ||
|
||
cpu_res?; |
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.
nit: I don't think we need to bind a variable at all - just inline the ?
to the expression above
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.
Will remove in the next PR on this topic (#655 )
fn collect_tries( | ||
&mut self, |
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.
want to return the data from the entrypoint function, not just to print them out or similar. I can not do that with the closure.
I'm not sure I follow - can you help me understand?
In my head what you've just said is trivial to implement as follows:
fn foo<T>(f: impl FnOnce() -> T) -> Result<usize, T> { .. }
@@ -0,0 +1,172 @@ | |||
//! This binary is a debugging tool used to compare |
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.
nit: I'd move this to Cli
, so it shows up with --help
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.
Will do in the next PR on this topic, I am currently working on.
Resolves #415