freenet-core icon indicating copy to clipboard operation
freenet-core copied to clipboard

WASM executor pool

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.rs contract_handling function, here is where we get the requests for running on the contracts that we would have to run in parallel.

iduartgomez avatar Mar 08 '25 14:03 iduartgomez