peterhuene edited PR #9 from engine-host-functions
to main
:
This RFC proposes to extend the Wasmtime API to allow users to define host
functions in aConfig
that can be shared between multiple engines and
therefore stores.Today,
Func
is used to define host functions, but it is tied to aStore
.
If users desire short-lived stores to ensure short-lived instances, host
functions need to be redefined upon every module instantiation.By defining host functions with a
Config
, instances can be created
without having to redefine the host functions; this will make for faster module
instantiations in scenarios where a module is repeatedly instantiated.
peterhuene edited PR #9 from engine-host-functions
to main
:
This RFC proposes to extend the Wasmtime API to allow users to define host
functions in aConfig
that can be shared between multiple engines and
therefore stores.Today,
Func
is used to define host functions, but it is tied to aStore
.
If users desire short-lived stores to ensure short-lived instances, host
functions need to be redefined upon every module instantiation.By defining host functions with a
Config
, instances can be created
without having to redefine the host functions; this will make for faster module
instantiations in scenarios where a module is repeatedly instantiated.
sunfishcode submitted PR Review.
cfallin submitted PR Review.
abrown submitted PR Review.
peterhuene merged PR #9.
Last updated: Nov 22 2024 at 16:03 UTC