Stream: general

Topic: ✔ wasm-compose module deduplication


view this post on Zulip Joel Dice (Sep 01 2023 at 17:54):

Does wasm-compose make any attempt to de-duplicate core modules? For example, if I compose two components, each with identical copies of libpython.so and libc.so, will the output contain just one of each? I'm guessing no, since shared-everything linking wasn't a thing until recently, but I thought I'd check.

view this post on Zulip Alex Crichton (Sep 01 2023 at 18:03):

I believe the answer is "no"

view this post on Zulip Alex Crichton (Sep 01 2023 at 18:04):

@Peter Huene would know for sure

view this post on Zulip Peter Huene (Sep 01 2023 at 18:04):

That's correct, it makes no attempt to do so

view this post on Zulip Notification Bot (Sep 01 2023 at 18:06):

Joel Dice has marked this topic as resolved.

view this post on Zulip Joel Dice (Sep 01 2023 at 18:23):

For reference, I opened an issue for this: https://github.com/bytecodealliance/wasm-tools/issues/1190

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

Last updated: Dec 23 2024 at 12:05 UTC