dotnet / dotnet/runtime

Support Zstandard in Browser/WASM

Open
#123,498 3 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.