Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zstd to wasm #836

Open
easy28 opened this issue Apr 9, 2024 · 1 comment
Open

Add zstd to wasm #836

easy28 opened this issue Apr 9, 2024 · 1 comment

Comments

@easy28
Copy link

easy28 commented Apr 9, 2024

What would you like to be added

Add an option to generate zstd files for wasm head.

Why is this needed

zstd is generally faster and provides better compression ratio than br.

For which platform

WebAssembly

Anything else we need to know?

Chrome support zstd by default, expect smaller download size if zstd added.

@jeromelaban jeromelaban transferred this issue from unoplatform/uno Apr 10, 2024
@jeromelaban
Copy link
Member

Thanks for the suggestion.

Note for contributors

The implementation for this provided here:

private void CompressFiles(string[] filesToCompress, string method, Action<string, string> compressHandler)

With compression handlers provided here:

private void BrotliCompress(string source, string destination)

There are likely some additional considerations to provide around the availability of a .NET implementation or wrapper for zstd, as well as server-side support for such compressed files, such as azure static apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants