Support Zstandard in Browser/WASM
Open
arch-wasm
area-System.IO.Compression
os-browser
os-wasi
- Dominant language
- C#
- Stars
- 18.3k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Description
Follow-up from https://github.com/dotnet/runtime/pull/119575.
The static linking of zstd to browser runtime increases the runtime size by about 0.5 MB which is a noticeable increase. The native relink process can strip out most of it if Zstandard APIs are not used in the code, but the code is not stripped otherwise.
After discussion with @pavelsavara, we aggreed that the feature should have an opt-in switch.
The changes needed to make it build and pass tests are the inverse of https://github.com/dotnet/runtime/pull/119575/changes/196fbc9ea2ef1b695181806730587bbdccb42a80.
Contributor guide
Assessment
This issue has not been assessed yet.