This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Refactor sc-executor interface so that the engine is reused #8251
Labels
I9-optimisation
An enhancement to provide better overall performance in terms of time-to-completion for a task.
A note on terminology first:
Right now, the sc-executor interface to a runtime is split onto two parts:
WasmModule
is an object that represents a wasm runtime and obtained by giving an engine a wasm blob. Then it can be used to get an instance ofWasmRuntime
, i.e. an instantiated wasm module that is ready for serving runtime calls.This split is very important for the engines that require non-trivial amount to get a prepared module, i.e. that use compilation.
However, this model doesn't recognize a need of reusing something across all
WasmModule
orWasmRuntime
s. For example, insc-executor-runtime
Engine
andStore
instances are not shared amongWasmModule
s.The text was updated successfully, but these errors were encountered: