You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parallelise Module::call_func function implementation
Description
Run an internal implementation of the Module::call_func in the separate thread.
Under the separate thread execution should be moved WASM Store initialisation, wasm module instantiation, and wasm function call.
Based on my work with the WASM Component Model code generation, it may impact this work.
We should probably look at integration with that first.
WASM component model autogenerates the calls to the functions defined by the component model .wit files.
See the example I have on calling using WASM Component model bindings.
This needs to work by running the wasm module execute in a threadpool.
Such that we can't have more wasm modules running than threads in the pool.
The pool needs to be sized to the number of hardware threads in the computer -2. And a minimum of 1 (in the case of a computer with < 4 hardware threads).
Summary
Parallelise
Module::call_func
function implementationDescription
Run an internal implementation of the
Module::call_func
in the separatethread
.Under the separate
thread
execution should be moved WASMStore
initialisation, wasm module instantiation, and wasm function call.The text was updated successfully, but these errors were encountered: