Stream: git-wasmtime

Topic: wasmtime / issue #13502 Investigate adding a "fast init" ...


view this post on Zulip Wasmtime GitHub notifications bot (May 28 2026 at 01:33):

alexcrichton edited issue #13502:

In #13487 support was added to initialize a wasm instance's "complicated" globals, tables, memories, etc. This, in theory, can go even further, however, and we could JIT initialization of an instance's VMContext itself. Right now vm::Instance::initialize_vmctx is a very branch-y and complicated function. This low-level initialization additionally doesn't need anything like fuel checks, epochs, a wasm stack, etc. Ideally we could split module initialization in two:

This in theory might make module instantiation even faster after #13487 since initialize_vmctx would be a JIT'd function rather than a generic one-size-fits-all function with lots of branches. Benchmarking TBD!

view this post on Zulip Wasmtime GitHub notifications bot (May 28 2026 at 01:34):

alexcrichton added the performance label to Issue #13502.

view this post on Zulip Wasmtime GitHub notifications bot (May 28 2026 at 01:34):

alexcrichton added the wasmtime label to Issue #13502.


Last updated: Jun 01 2026 at 09:49 UTC