Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Remove unused data segments #21

@fitzgen

Description

@fitzgen

I used wasm-snip to remove all the panicking and formatting code from my .wasm, but my data section is still mostly fragments of diagnostic messages for panicking and formatting, and wasm-gc and wasm-opt can't remove them.

This is almost 20% of my .wasm's code size.

We need some way to mechanically remove this stuff -- doing it by hand is not feasible.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions