-
-
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
Fix VList Stream in SSR #2801
Fix VList Stream in SSR #2801
Conversation
Visit the preview URL for this PR (updated for commit d0ed690): https://yew-rs-api--pr2801-fix-rendering-stream-vs03l8f3.web.app (expires Sat, 13 Aug 2022 16:00:53 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
Size Comparison
✅ None of the examples has changed their size significantly. |
# Conflicts: # .github/workflows/benchmark-ssr.yml
Benchmark - SSRYew Master
Pull Request
|
There are some additional optimisations that can be landed to improve SSR performance. Most optimisations can be found in #2772. Final Result
|
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.
Implementation looks good. The performance improvements are great!
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.
Is there any reason to use 30
as the magical cut off, or was that determined by an educated guess?
This is picked by When the number of futures is small, it will use a |
Description
This pull request fixes the rendering stream in VList.
Previously, the VList would block until a child future has finished before the child stream was returned.
This pull request allows items to be yielded to the parent stream as soon as an item is written to the child stream.
As a result, this pull request increases function router benchmark performance for ~20%.
Checklist
pull request:
master: