Skip to content

Remove get_xxx_context functions from wasm #5074

@mversic

Description

@mversic

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions