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.
I think entrypoint function can be derived (with codec::export) similarly to how codec::wrap (I suggest we rename it to codec::import) is used to derive host functions
when wasm is executed it's
entrypointfunction is always without arguments and does a callback toget_xxx_contextto initialize. We should remove that (as it saves us one call to host) and directly provide an encoded argument when calling theentrypointfunction.I think
entrypointfunction can be derived (withcodec::export) similarly to howcodec::wrap(I suggest we rename it tocodec::import) is used to derive host functions