-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Wasm splitting in yew #3932
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
base: master
Are you sure you want to change the base?
Wasm splitting in yew #3932
Conversation
don't start fetching once per component, cache the vtable.
|
The review pings are mostly because I think both of you will find this interesting, not necessarily as an invite to dig into the code and give meaningful suggestions for improvements (but feel free to if you have the time). |
makes it possible to implement a helper macro without the user pulling in an extra dependency and has tighter version requirements.
Benchmark - coreYew MasterPull Request |
Benchmark - SSRYew Master
Pull Request
|
|
Visit the preview URL for this PR (updated for commit 3cf0e6e): https://yew-rs-api--pr3932-split-wasm-8cld9gqn.web.app (expires Wed, 29 Oct 2025 11:11:55 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
Description
Add a way to split the wasm bundle in multiple components. This modifies the build process, and uses relocation information emitted by llvm to identify where to "split". There's a bit of glue code in yew to ensure that messages sent to the lazy component are processed and properties are passed along without additional cloning.
The main part of the solution lives in https://github.com/WorldSEnder/wasm-split-prototype as of now. This was implemented in collaboration with the maintainer of leptos.
Checklist