perf: Don't validate transactions inside WASM#4995
perf: Don't validate transactions inside WASM#4995nxsaken merged 3 commits intohyperledger-iroha:mainfrom
Conversation
mversic
left a comment
There was a problem hiding this comment.
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 <diralik@yandex.ru>
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
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 <diralik@yandex.ru>
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.