Stream: git-wasmtime

Topic: wasmtime / issue #15140 Wasmtime: separate Pool out of En...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 04 2026 at 01:00):

pchickey opened issue #15140:

For historical reasons, Wasmtime's pooling allocator and the Engine struct are joined at the hip. Some aspects that affect pooling are indeed linked to codegen and therefore an Engine, but other aspects are not necessarily linked and, in fact this makes some kinds of configurations - the reasonable problem statement "I want a pooling allocator which can provide N instances of Component X" - unnecessarily difficult, or require crude hacks (e.g. serializing and deserializing a Component to move it between code-compatible Engines).

My rough design sketch:

view this post on Zulip Wasmtime GitHub notifications bot (Nov 05 2026 at 14:58):

rvolosatovs commented on issue #15140:

The proposal sounds great to me - it is not always obvious how to correctly configure the pooling allocator, and it seems that this approach would improve that experience.

More importantly, it sounds like embedders would be able to choose an appropriate allocator configuration per workload, for example use pooling allocator for some workloads and prefer on-demand for others, all while reusing the same engine for codegen, which I would be largely in favor of.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 05 2026 at 15:36):

fitzgen commented on issue #15140:

Yeah, seems like a good idea at a high level to me. I have nitpicks about naming and such, but I don't think that makes sense to get into quite yet.

In theory we _could_ even mix instances from different allocators within the same store, but I think that would be more of a headache than actually unlocking any benefit.


Last updated: Nov 19 2026 at 20:05 UTC