Skip to content

[wasm] Shrink data section in dotnet.wasm #49224

@CoffeeFlux

Description

@CoffeeFlux

This is surprisingly large in the uncompressed binary, especially with ICU linked in. It seems likely that getting rid of unnecessary strings, shrinking unused arrays, and deduplication efforts could potentially give us some wins post-compression, but we should try compressing a binary with the data section manually removed to see how much space it's taking up post-compression.

Invariant uncompressed:

13.1%   165Ki   NAN%       0    Data

ICU uncompressed:

23.0%   513Ki   NAN%       0    Data

Metadata

Metadata

Assignees

Labels

arch-wasmWebAssembly architecturearea-VM-meta-monosize-reductionIssues impacting final app size primary for size sensitive workloads

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions