Open
iduartgomez
opened this issue 8 months ago
•
0 comments
Multi-thread wasm executor. Add a job stealing pool of runtimes at the executor for wasm contracts. Make sure that we don’t run updates in parallel for the same ContractInstanceId.
We don’t have to block threads (like we are currently doing) when running the runtime functions (example validate_stateetc).
Those can be ran in a different task and as we complete them send the result back.
Check crates/core/src/contract.rscontract_handling function, here is where we get the requests for running on the contracts that we would have to run in parallel.