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.
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