github-actions[bot] commented on Issue #2454:
Subscribe to Label Action
cc @peterhuene
<details>
This issue or pull request has been labeled: "cranelift", "cranelift:wasm", "wasmtime:api"Thus the following users have been cc'd because of the following labels:
- peterhuene: wasmtime:api
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
peterhuene commented on Issue #2454:
This PR also tries to reduce allocations and copying:
wasmtime_environ::Modulenow stores passive element and data segments differently so that instances can track dropped segments using anEntitySetrather than cloning the previousHashMaps and removing an entry when dropped.The
modulefield ofCompilationArtifactshave been madeArcso thatCompiledModuledoesn't need to clone the underlying module during compilation.Similarly, the
data_initializersfield ofCompilationArtifactshas been madeArcso that, in the future, a pooling instance allocator can take a reference on the data initializers for on-demand initialization of linear memory pages. This change also prevents having to allocate a newVecof data initializers to complete initialization for every instantiation.
github-actions[bot] commented on Issue #2454:
Subscribe to Label Action
cc @peterhuene
<details>
This issue or pull request has been labeled: "wasmtime:c-api"Thus the following users have been cc'd because of the following labels:
- peterhuene: wasmtime:c-api
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
peterhuene commented on Issue #2454:
Closing this PR in favor of #2518.
Last updated: Dec 06 2025 at 06:05 UTC