Stream: git-wasmtime

Topic: wasmtime / PR #15366 perf: Lookup whether a global/memory...


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

michael-weigelt opened PR #15366 from michael-weigelt:mwe/perf to bytecodealliance:main:

This has been discussed in a private conversation on zulip with @alexcrichton and @fitzgen .

During compilation, cranelift calls Module::is_exported_memory in memory_alias_region for every Wasm instruction that accesses memory. That method iterates through all exports, so if there are many of those and many accesses, it can slow down compilation significantly.

This PR addresses that by making Module.exports a struct that keeps some auxiliary sets and keeps them in sync with the exports map. The public interface of the new struct ModuleExports exposes just what's currently needed by callers, but can be easily extended.

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

michael-weigelt removed the review request for wasmtime-core-reviewers from PR #15366.

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

michael-weigelt requested dicej for a review on PR #15366.

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

michael-weigelt requested wasmtime-core-reviewers for a review on PR #15366.

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

:thumbs_up: alexcrichton submitted PR review.

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

alexcrichton added PR #15366 perf: Lookup whether a global/memory/table is exported in constand time to the merge queue.

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

:check: alexcrichton merged PR #15366.

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

alexcrichton removed PR #15366 perf: Lookup whether a global/memory/table is exported in constand time from the merge queue.


Last updated: Nov 19 2026 at 20:05 UTC