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
Large filesize (1MB of raw WASM) #269
Comments
Making this change -wasm-opt = ['-O4', '--dce']
+wasm-opt = ['-g'] takes the filesize from
I'm not familiar with these tools, but it looks like there's no giant blob of some dependency getting smashed in. Seems like this is just how much it takes. FWIW, matter.js seems to be ~120kB. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Has any effort gone into filesize? Maybe there are some low hanging fruit?
@dimforge/rapier2d 0.12.0
, the filerapier_wasm2d_bg.wasm
is1.05MB
0.11.2
is1.05MB
0.11.0
is1.04MB
0.10.0
is1.04MB
0.9.0
is1.02MB
So there's no sudden jump, seems like it's always been very large.
The text was updated successfully, but these errors were encountered: