Stream: git-wasmtime

Topic: wasmtime / PR #13954 feat: allow Wizer context reuse


view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2026 at 13:50):

rvolosatovs opened PR #13954 from rvolosatovs:feat/clonable-wizer-cx to bytecodealliance:main:

I would like to use Wizer to instrument a single Wasm component, instantiate it multiple times and then snapshot the state of each individual instance.
Currently that requires instrumenting the component N times for each instance, since snapshotting moves the context, which in itself is not Clone.
I first added a Clone implementation to the context, but then realized that it is never actually mutated, so switched snapshot functions to borrow the context instead.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2026 at 13:51):

rvolosatovs edited PR #13954:

I would like to use Wizer to instrument a single Wasm component, instantiate it multiple times and then snapshot the state of each individual instance.
Currently that requires instrumenting the component N times for each instance, since snapshotting moves the context, which in itself is not Clone.
I first added a Clone implementation to the context, but then realized that it is never actually mutated, so switched snapshot functions to borrow the context instead as well.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2026 at 13:51):

rvolosatovs edited PR #13954:

I would like to use Wizer to instrument a single Wasm component, instantiate it multiple times and then snapshot the state of each individual instance.
Currently that requires instrumenting the component N times for each instance, since snapshotting moves the context, which is itself not Clone.
I first added a Clone implementation to the context, but then realized that it is never actually mutated, so switched snapshot functions to borrow the context instead as well.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2026 at 16:03):

rvolosatovs has marked PR #13954 as ready for review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2026 at 16:03):

rvolosatovs requested pchickey for a review on PR #13954.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2026 at 16:03):

rvolosatovs requested wasmtime-core-reviewers for a review on PR #13954.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2026 at 16:54):

:thumbs_up: pchickey submitted PR review:

Thanks

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2026 at 17:44):

rvolosatovs added PR #13954 feat: allow Wizer context reuse to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2026 at 18:07):

github-actions[bot] added the label wizer on PR #13954.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2026 at 18:07):

github-actions[bot] commented on PR #13954:

Subscribe to Label Action

cc @fitzgen

<details>
This issue or pull request has been labeled: "wizer"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2026 at 18:09):

:check: rvolosatovs merged PR #13954.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2026 at 18:09):

rvolosatovs removed PR #13954 feat: allow Wizer context reuse from the merge queue.


Last updated: Jul 29 2026 at 05:03 UTC