Skip to content

wasm-compose: deduplicate identical modules #1190

@dicej

Description

@dicej

Now that we've implemented shared-everything linking as part of wit-component (see #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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wasm-composeIssues related to the `wasm-compose` crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions