Stream: git-wasmtime

Topic: wasmtime / issue #33 Data-Structure ModuleTranslation dep...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2025 at 20:21):

alexcrichton closed issue #33:

The following function of is creating the ModuleTranslation from raw WASM-data

impl<'data, 'module> ModuleEnvironment<'data, 'module> {
   pub fn translate(mut self, data: &'data [u8]) -> WasmResult<ModuleTranslation<'data, 'module>> {};
}

Due to this, the raw-wasm data must outlive Translation/Compilation. This may cause double memory consumption, keeping the raw-wasm-data and translated/compiled representation in memory.

I would expect that after invocation of function translate, the raw WASM-data could be dropped/deleted to reduce memory consumption.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2025 at 20:21):

alexcrichton commented on issue #33:

While technically still applicable to Wasmtime, this is old enough that I'm going to close this out. If this is a concern it's best to have a fresh new issue I believe.


Last updated: Dec 06 2025 at 07:03 UTC