-
Notifications
You must be signed in to change notification settings - Fork 156
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
Ideas for (internal) improvements #385
Comments
All the above excellent brainstorming, obviously crucial to the moment is systematic profiling / benchmarking to understand the effect of any of the above potential improvements. |
Note: I've just added into the above list this link - christian-schilling/seed-quickstart#1. Is the result of the investigation of the slow first rendering in the app with many nodes. I just though it would be interesting for you. (cc @akhilman, @rebo) |
Regarding your Node caching comments on the pull request. This is currently working as part of the hooks infrastructure. I'll upload an example later. |
WebAssembly Interface Types may also change performance in the future. |
I just compared the filesize of the counter example:
That's a huge difference. Does s.o. know what's the main reason for this? All were optimized with: [profile.release]
lto = true
opt-level = 'z'
codegen-units = 1 |
The related issue comment: krausest/js-framework-benchmark#854 (comment) |
thx! |
I did twiggy dominators against counter example compiled in debug mode. Here is result. |
@akhilman If you think you can remove Serde or other dependencies, I will be very glad for a PR. If not possible, then feature flag would be also nice. |
I've got deeper look and seems we can not just drop serde_json:
Positive part:
Todomvc size comparison is not so dramatic:
Both includes serde_json. |
The large file size caused by Serde seems to be a known fact - serde-rs/serde#286 If we can't remove Serde, can we replace it? I've found some potential options: |
This one looks promising ... probably we can use it behind a feature flag? |
MoonZoon uses |
HashMaps
- e.g. use https://github.com/cbreeden/fxhash.BTreeMap
s andIndexMap
s.wasm-bindgen
-related optimizations:#[inline(..)]
(?).mpsc
with future-signals or crossbeam or flume (if possible).Box
/Rc
where it doesn't affect public API.Cow
with the beef one, if possible.web_sys
calls.Node
cacheable? (Related - Performance / View Caching potential #443)App
initialization - Mount takeover behavior concerns. #277.Debug
s.Makefile.toml
(see the quickstart's one).The text was updated successfully, but these errors were encountered: