-
Notifications
You must be signed in to change notification settings - Fork 993
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
slimmer wasm build #41
Comments
@murisi can you check this (low priority, if it's hard just close the issue) since you were looking into the WASM compilation? |
@cwgoes Sure! Will take a look at this... |
one thing that has a significant impact on the size of built wasm are allocations - see e.g. https://nickb.dev/blog/avoiding-allocations-in-rust-to-shrink-wasm-modules/ |
I got some good results with disabling "std" and "clock" features in chrono which decreased most of the WASMs over 10 times, but I didn't get it fully done as there is a bunch of logic that depends on it that would need some modifications to get this to work. Most of it is in our |
feat/39 - Implement IBC interface
It looks that some dependencies (even when unused) end-up bloating the built wasm size, so we should investigate if we can remove some unnecessary dependencies from them (specifically, anything from the transitive deps from the shared crate imported via
vm_env
and nowvp_prelude
/tx_prelude
crates).┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: