-
Notifications
You must be signed in to change notification settings - Fork 13
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
Minimize WASM size #9
Comments
What is the current bundle size?
|
|
How to reduce WASM size:
|
I think we cannot directly compare js bundle size vs wasm bundle size, because as far as I know wasm was optimized for streaming and interpretation speed, i.e. wasm bundle with equal size should be faster because browser don't need to parse the whole script. That being said, I think bundle size is already quite good. |
Yeah, that's the reason why it isn't my priority now, but it can be better. And I think that the small size is also quite good for marketing - especially in comparison with e.g. Blazor and other wasm frameworks. |
Update in the latest version (0.4.1) - I've added flags from the first comment and it reduced WASM file size:
|
It definitely would be worthwhile to get some improvements here I'm comparing todo mvc example in yew https://todomvc.yew.rs/ and in seed which I build with Sizes of wasm output file relate as (yew/seed):
So it looks like yew is 90% smaller which makes a huge difference IMO. Disclaimer: I'm new to both so maybe I don't know about some required optimisation flags yet. |
@alun |
What can be added into
Cargo.toml
:Other ideas?
@TatriX - you (will) have the project based on the current
seed-quickstart-webpack
template - I would be glad if you can confirm, that it helps or if you find other options. Don't hurry, I plan to integrate it to next release without ETA. Thanks!The text was updated successfully, but these errors were encountered: