WASM execution without prior deployment #9379
Labels
A-contract-runtime
Area: contract compilation and execution, virtual machines, etc
T-contract-runtime
Team: issues relevant to the contract runtime team
A truly stateless validator would not have access to pre-deployed contract code.
If we can't rely on that optimization, how much slower would WASM execution be and what can we do about it?
Luckily, we have already spent a lot of time optimizing compilation and are proud of our linear in time and space complexity WASM validation & compilation passes. So maybe it's actually okay to add this extra latency?
According to our gas costs today, compilation takes ~0.3ms + ~6.4ms per 100kB on a chunk producer.
Adding this extra delay for every function call on the stateless validator is unfortunate. But something we can potentially overcome.
Also note that due to everything being in-memory on the stateless validator, all storage related costs should be much faster. So for storage access heavy receipts, chunks would be produced much slower than stateless validators can validate them if they are running on comparable CPUs.
Other possible solutions to get around the compilation include:
The text was updated successfully, but these errors were encountered: