-
Notifications
You must be signed in to change notification settings - Fork 304
feat: Add compression support for wasm binary #990
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
base: main
Are you sure you want to change the base?
Conversation
* Add data-gzip-compression attribute. * Enable compression by default on release build. * Use DecompressionStream API to decompress at runtime. Signed-off-by: bigsaltyfishes <bigsaltyfishes@gmail.com>
* Remove `data-gzip-compression` attribute. * Add `data-compression-algorithm` and `data-compression-level` attributes. * Add support for zlib(deflate) and deflate(deflate-raw) algorithm. Signed-off-by: bigsaltyfishes <bigsaltyfishes@gmail.com>
Signed-off-by: bigsaltyfishes <bigsaltyfishes@gmail.com>
|
Thanks for the PR. I guess this could be a valuable addition. There are two things:
|
Signed-off-by: bigsaltyfishes <bigsaltyfishes@gmail.com>
Signed-off-by: bigsaltyfishes <bigsaltyfishes@gmail.com>
Signed-off-by: bigsaltyfishes <bigsaltyfishes@gmail.com>
a42dc04 to
80bc851
Compare
…ure `init_with_object` Signed-off-by: bigsaltyfishes <bigsaltyfishes@gmail.com>
I've merged repeat code and add missing compression support for custom initializer. Here are the file size savings with compression enabled. All examples were built with the release profile. By default, gzip compression is enabled with the default compression level:
All examples save about 50% to 70% in size. |
Signed-off-by: bigsaltyfishes <bigsaltyfishes@gmail.com>
db8d1c8 to
4758424
Compare
This is an attempt to add compression support for wasm binary.
data-compression-algorithmanddata-compression-levelattributes.data-compression-level="0".