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

Support Zstandard as compression algorithm #2772

Open
1 task
gangsthub opened this issue Oct 2, 2024 · 3 comments
Open
1 task

Support Zstandard as compression algorithm #2772

gangsthub opened this issue Oct 2, 2024 · 3 comments
Labels
enhancement New feature or request pending triage

Comments

@gangsthub
Copy link

Describe the feature

Zstandard is a fast compression algorithm, providing high compression ratios. It also offers a special mode for small data, called dictionary compression. The reference library offers a very wide range of speed / compression trade-off, and is backed by an extremely fast decoder

https://facebook.github.io/zstd/

Currently, the options to pre-compile the public assets only allow gzip "and/or" Brotli: https://nitrojs.dev/config#compresspublicassets

Potentially, zstd could provide smaller files, faster (in some scenarios –yet to be investigated).

Additional information

  • Would you be willing to help implement this feature?
@manniL
Copy link
Contributor

manniL commented Oct 5, 2024

Additional info: zstd browser support (Chromium and FF)

@manniL manniL added the enhancement New feature or request label Oct 5, 2024
@wug-ge
Copy link

wug-ge commented Nov 14, 2024

@pi0 is this related to #2880 ?

@pi0
Copy link
Member

pi0 commented Nov 14, 2024

Nop, that is limitation of fetch in node (indici), this is to potentially precompute zstd version of static assets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pending triage
Projects
None yet
Development

No branches or pull requests

4 participants