Automatically gzip Wasm binaries #3110
Closed
lastmjs
started this conversation in
Feature Requests
Replies: 3 comments 1 reply
-
This would have to be an explicit field, as gzipping the canister is meaningful on the replica's end - the reported canister module hash is that of the gz file, not of the uncompressed wasm file. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Just to clarify, the binary is optimized in place |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
dfx 0.14.0 introduced automatic binary optimization from wasm-opt with a new
optimize
field in the dfx.json. This is great, but the wasm-opt might not be enough. gzip may be necessary after the wasm-opt pass, but it is difficult to retrieve the binary after optimization as it's stored rather opaquely in.dfx
(actually is that true? I think it might be optimizing the binary in-place using the path to the binary from dfx.json).It would be great if gzip could be done automatically in addition to wasm-opt, to have even more optimization tools available easily to developers.
Beta Was this translation helpful? Give feedback.
All reactions