-
Notifications
You must be signed in to change notification settings - Fork 763
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
Compute range on sync layout #775
Conversation
56e4d33
to
66cb39a
Compare
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.
@adityasharat has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
The build is failing; could you please confirm and update the PR if required. |
66cb39a
to
13c9c61
Compare
@vinc3m1 has updated the pull request. You must reimport the pull request before landing. |
oh right thanks missed some code sorry |
13c9c61
to
5ed1aa9
Compare
@vinc3m1 has updated the pull request. You must reimport the pull request before landing. |
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.
@adityasharat has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@adityasharat merged this pull request in 4535f06. |
Summary: Same as title Reviewed By: mihaelao Differential Revision: D29361136 fbshipit-source-id: d60d76ecb33b6529a5325f6234595735c1a66802
RecyclerBinder's prefetch happens on onScroll events, but onScroll is only fired after a full frame is rendered.
For fast flings, this could lead to situations where an entire screen is rendered serially and synchronously on the main thread before any parallel layout is kicked off in onScroll.
This change kicks off parallel rendering of an estimated screen size in the direction of scroll immediately upon encountering a synchronous layout.
Combined with LayoutStateFutures, this should unblock the main thread faster than serial synchronous layout in these situations.