Open Mr-Leshiy opened 9 months ago
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).
@Mr-Leshiy need to update description
Summary
Parallelise
Module::call_func
function implementationDescription
Run an internal implementation of the
Module::call_func
in the separatethread
. Under the separatethread
execution should be moved WASMStore
initialisation, wasm module instantiation, and wasm function call.