-
Notifications
You must be signed in to change notification settings - Fork 277
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
perf: Don't validate transactions inside WASM #4995
perf: Don't validate transactions inside WASM #4995
Conversation
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 think you should apply this to all validate_***
methods in this crate
you still didn't apply it to |
also |
Signed-off-by: Dmitry Murzin <[email protected]>
Signed-off-by: Dmitry Murzin <[email protected]>
Signed-off-by: Dmitry Murzin <[email protected]>
72375b9
to
3d72453
Compare
|
it's fine, I only looked around for Can you update the numbers in the PR description? |
Updated executor size. Tps numbers remains the same |
Signed-off-by: Dmitry Murzin <[email protected]>
Context
I am investigating single peer tps performance (#4727), and it turns out that actual execution of wasm code takes most of the time per transaction (#3716 (comment)).
Solution
This PR removes validation of transactions at WASM side - there is no need to revalidate transaction which comes from Iroha Rust code. This gives approximately 50% tps increase (single peer). Also size of default executor is reduced from 492KB to 391KB.
Comparison of tps:
Fixes #4803
Related: #4727
Related: #3716
Checklist
CONTRIBUTING.md
.