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 upRewrite parallel.rs #16971
Rewrite parallel.rs #16971
Conversation
highfive
commented
May 20, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
May 20, 2017
|
@bors-servo try |
Rewrite parallel.rs https://bugzilla.mozilla.org/show_bug.cgi?id=1366347 <!-- 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/16971) <!-- Reviewable:end -->
|
|
|
@bors-servo try |
Rewrite parallel.rs https://bugzilla.mozilla.org/show_bug.cgi?id=1366347 <!-- 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/16971) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
Rewrite parallel.rs https://bugzilla.mozilla.org/show_bug.cgi?id=1366347 <!-- 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/16971) <!-- Reviewable:end -->
|
Ok, out of time before bed and I want to get this into the queue. @bors-servo r=emilio p=1 |
|
|
|
|
|
|
|
@bors-servo retry |
|
|
|
|
|
@bors-servo r=emilio |
|
|
Rewrite parallel.rs https://bugzilla.mozilla.org/show_bug.cgi?id=1366347 <!-- 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/16971) <!-- Reviewable:end -->
|
|
Parallel layout optimizations This takes some of the optimizations made to parallel styling in #16971 and applies them to parallel layout. Specifically: * Reduce the chunk size, to increase chances for parallelism on trees with small fan-out. * Reduce allocations by using SmallVec. * Reduce task switching by processing up to one chunk of children within the same rayon task as the parent. This cuts the "Primary Layout Pass" time in **half** on the MySpace page from [tp5n], and on my other real-world test pages it is a small improvement or close to no change. [tp5n]: https://wiki.mozilla.org/Buildbot/Talos/Tests#tp5n_pages_set --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they affect performance only <!-- 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/17192) <!-- Reviewable:end -->
bholley commentedMay 20, 2017
•
edited by larsbergstrom
https://bugzilla.mozilla.org/show_bug.cgi?id=1366347
This change is