I’m aware that this isn’t part of the wasm spec yet (see https://github.com/WebAssembly/design/issues/1397
https://github.com/WebAssembly/memory-control/issues/7)
But is there some sort of unofficial wasmtime extension or something to detect when memory isn’t being use and shrink it?
This topic was moved to #wasmtime > how to discard memory in wasmtime? by Till Schneidereit.
Last updated: Dec 06 2025 at 05:03 UTC