hyperledger-iroha / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
438 stars 280 forks source link

perf: Directly provide payload to WASM entrypoints #5113

Closed dima74 closed 3 weeks ago

dima74 commented 3 weeks ago

Context

Fixes #5074

Solution

From the issue:

when wasm is executed it's entrypoint function is always without arguments and does a callback to get_xxx_context to initialize. We should remove that (as it saves us one call to host) and directly provide an encoded argument when calling the entrypoint function.

Checklist