-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Optimize VTag construction, memory footprint and patching #1947
Optimize VTag construction, memory footprint and patching #1947
Conversation
Is support for Rust 1.45 still required? It's almost a year old release by this point. |
I thought we'd bumped the MSRV to 1.51.0 991abab |
@teymour-aldridge Seems this was missed in that PR: https://github.com/yewstack/yew/blob/master/.github/workflows/pull-request.yml#L131. |
Nah, we just bumped the version for tests in CI. MSRV is still the same |
Hmm, should I amend my code with some |
… On 09/07/2021 17:40, bakape wrote:
Hmm, should I amend my code with some |unsafe| then? The alternatives
would be conditional compilation on rust version or some performance
penalty by adding |std::mem::take|.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1947 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKFSTPK7INAOSGS6WZBMRETTW4Q6LANCNFSM5ABPKQYQ>.
|
Yes, there have definitely been quite a few Git issues recently.
…On 09/07/2021 17:30, bakape wrote:
@teymour-aldridge <https://github.com/teymour-aldridge> Seems this was
missed in that PR:
https://github.com/yewstack/yew/blob/master/.github/workflows/pull-request.yml#L131
<https://github.com/yewstack/yew/blob/master/.github/workflows/pull-request.yml#L131>.
I'll PR a fix.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1947 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKFSTPJDW5SWAHRUR4YB65TTW4P3ZANCNFSM5ABPKQYQ>.
|
I'm totally fine bumping the MSRV version but I think it's best to have an older maintainer than me on this subject. |
Bump MSRV as needed, it's just added as an FYI to any consumers of the library 😄 |
Visit the preview URL for this PR (updated for commit c4f62ff): https://yew-rs--pr1947-fix-remerge-vtag-con-bwhafw1o.web.app (expires Sun, 25 Jul 2021 16:20:48 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍 One more reviewer would be nice
@siku2 Everything addressed. |
Description
#1905 overwrote the optimizations merged in #1867. This PR remerges those optimizations and additionally:
VTag
construction logic to compile-time via thehtml!
macroVTag
memory footprint via enumsVTag
patching. This includes the variousOption<T>
values already present before this PR.Benchmark results using https://github.com/bakape/js-framework-benchmark
The small degradation of row swapping performance can be addressed by merging #1555 to improve
VList
patching vectorization.Checklist
cargo make pr-flow