bytecodealliance / bytecodealliance/wasm-tools

wasm-compose: deduplicate identical modules

Open
#1,190 0 comments 1 reaction 0 assignees View on GitHub
wasm-compose
Dominant language
Rust
Stars
1.8k
Forks
351
Avg merge
16h 57m
Merged PRs (30d)
38

Description

Now that we've implemented [shared-everything linking](https://github.com/WebAssembly/component-model/blob/main/design/mvp/examples/SharedEverythingDynamicLinking.md) as part of `wit-component` (see https://github.com/bytecodealliance/wasm-tools/pull/1133), it would be nice if `wasm-compose` could check for identical modules and deduplicate them.

For example, when composing two components created by `componentize-py`, both components will [1] likely have identical copies of `libpython311.so`, `libc.so`, `libcomponentize_py_runtime.so`, etc., each of which could be deduplicated.

[1]: If it turns out two components produced by the same version of `componentize-py` contain libraries that _aren't_ identical, I'd consider that a bug to be fixed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.