-
Notifications
You must be signed in to change notification settings - Fork 130
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
WASM output size increased dramatically after using finalize_mall
#552
Comments
finalize_mall
finalize_mall
I'm happy to leave this open but I did a quick check of the code to see if we are gratuitously using generics, or something like that which we could easily fix, but it actually looks like a pretty concrete function. I think improvements are going to have to come from the wasm compiler rather than from us. |
Thanks for fast reply! This makes sense. We also tried The biggest question I think is what are these 1.1 MB data. |
Hmm, yeah, 1.1 in code wouldn't shock me because it's pulling in many functions that otherwise wouldn't be linked. But we shouldn't have anywhere near a meg in data. |
So after we introduce
finalize_mall
the size of the output jump from105988 bytes
to1920836
. Here is the repo to reproduce. You could comment out the line 20 in lib.rs and rebuild to see the size difference.Here is the twiggy output:
The text was updated successfully, but these errors were encountered: