Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upScript paint worklets speculative evaluation #17810
Conversation
highfive
commented
Jul 20, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jul 20, 2017
|
This PR is dependent on #17634. |
558002f
to
5976728
|
|
5976728
to
372f159
|
|
372f159
to
5b61105
|
#17634 landed, so this PR is ready for review! |
|
|
31a00a3
to
016af1a
|
|
016af1a
to
ffd4c99
|
Looks fine, just a question. |
| @@ -520,6 +522,8 @@ where | |||
| } | |||
| } | |||
|
|
|||
| notify_paint_worklet(context, data); | |||
This comment has been minimized.
This comment has been minimized.
emilio
Jul 28, 2017
Member
Are you sure you want this outside of the if compute_self block? Do we really always need to paint it even if the style is the same?
This comment has been minimized.
This comment has been minimized.
|
Also, do you have any numbers on this? |
|
|
ffd4c99
to
c512f6f
|
@emilio I'm afraid not, to get decent numbers we'd need a page with reasonably complex style/layout and a paint worklet. All the paint worklet demos are quite simple at the moment :/ @bors-servo r=emilio |
|
|
|
|
|
|
|
|
c512f6f
to
936dd3e
|
No actual numbers, but at least the cache is doing its job!
@bors-servo r=emilio |
|
|
…valuation, r=emilio Script paint worklets speculative evaluation <!-- Please describe your changes on the following line: --> This PR speculatively calls paint worklets during style, which increases the concurrency, since it increases the chance that the cache will have the right result in it when it comes to layout. The speculation is wasted effort if the size of the element has changed, but this is often not the case. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #17486 and #17369. - [X] These changes do not require tests because it's a performance improvement <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17810) <!-- Reviewable:end -->
|
|
asajeffrey commentedJul 20, 2017
•
edited by larsbergstrom
This PR speculatively calls paint worklets during style, which increases the concurrency, since it increases the chance that the cache will have the right result in it when it comes to layout. The speculation is wasted effort if the size of the element has changed, but this is often not the case.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is