4 ms·
That's possible. I did spend quite a bit of time tinkering with compiler flags and followed the recommendations, but there is many knobs. For what it's worth I
by shzhdbi09gv8ioi 3y ago
That's possible. I did spend quite a bit of time tinkering with compiler flags and followed the recommendations, but there is many knobs.
For what it's worth I don't think 3MB is extremely large anymore, as several popular websites already weight in 2-3 MB for a full page loads.
Examples:
* www.youtube.com = 3.3 MB
* www.tiktok.com = 3.3 MB
* www.instagram.com = 2.1 MB
(according to https://www.supermonitoring.com/p/page-speed https://www.supermonitoring.com/p/page-speed)
That said, I would love to shave off more size off my wasm binaries :-)
Some notes I found just now seems to be in line with my results, though: https://github.com/bevyengine/bevy/issues/3978#issuecomment-1044333040 https://github.com/bevyengine/bevy/issues/3978#issuecomment-...
- shzhdbi09gv8ioi 3y agoFWIW, this is my relevant Cargo.toml settings: [profile.release] lto = "fat" codegen-units = 1 opt-level = 3 debug = false panic = "abort" strip = "debuginfo" [profile.wasm-release] inherits = "release" opt-level = "z"