bytecodealliance / bytecodealliance/wasmtime

c-api: component-model: An "unchecked" way of calling a function

Open
#11,501 3 comments 2 reactions 0 assignees View on GitHub
wasm-proposal:component-model wasmtime:c-api
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

Currently funciton invocations, both on the host and that of guests, go through `wasmtime_component_val_t` which is a bit of a heavyweight representation of arguments/results in the component model. Ideally the C API sould support something like `wasmtime_func_call_unchecked` which places more burden on the caller but is implemented in a much more efficient fashion. Supporting this with the full matrix of types in the component model is unclear how it will be done so this is, to me at least, an open design/research question currently without a solution.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.