Skip to content
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

Rewrite parallel.rs #16971

Merged
merged 1 commit into from May 21, 2017
Merged

Rewrite parallel.rs #16971

merged 1 commit into from May 21, 2017

Conversation

@bholley
Copy link
Contributor

bholley commented May 20, 2017

@highfive
Copy link

highfive commented May 20, 2017

Heads up! This PR modifies the following files:

  • @emilio: components/style/parallel.rs, components/style/matching.rs
@highfive
Copy link

highfive commented May 20, 2017

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify style code, but no tests are modified. Please consider adding a test!
@bholley
Copy link
Contributor Author

bholley commented May 20, 2017

@bors-servo
Copy link
Contributor

bors-servo commented May 20, 2017

Trying commit 2fb8bcf with merge 195b3b5...

bors-servo added a commit that referenced this pull request May 20, 2017
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
Copy link
Contributor

bors-servo commented May 20, 2017

💔 Test failed - linux-dev

@bholley bholley force-pushed the bholley:fix_parallelism branch from 2fb8bcf to b298f06 May 20, 2017
@bholley
Copy link
Contributor Author

bholley commented May 20, 2017

@bors-servo
Copy link
Contributor

bors-servo commented May 20, 2017

Trying commit b298f06 with merge f8358ea...

bors-servo added a commit that referenced this pull request May 20, 2017
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
Copy link
Contributor

bors-servo commented May 20, 2017

💔 Test failed - linux-dev

@bholley
Copy link
Contributor Author

bholley commented May 20, 2017

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented May 20, 2017

Trying commit b298f06 with merge 4f745c9...

bors-servo added a commit that referenced this pull request May 20, 2017
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 -->
@bholley
Copy link
Contributor Author

bholley commented May 20, 2017

Ok, out of time before bed and I want to get this into the queue.

@bors-servo r=emilio p=1

@bors-servo
Copy link
Contributor

bors-servo commented May 20, 2017

📌 Commit b298f06 has been approved by emilio

@bors-servo
Copy link
Contributor

bors-servo commented May 20, 2017

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev
Approved by: emilio
Pushing 4f745c9 to master...

@bors-servo
Copy link
Contributor

bors-servo commented May 20, 2017

👀 Test was successful, but fast-forwarding failed: 422 Update is not a fast forward

@emilio
Copy link
Member

emilio commented May 21, 2017

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented May 21, 2017

🔒 Merge conflict

@bors-servo
Copy link
Contributor

bors-servo commented May 21, 2017

The latest upstream changes (presumably #16972) made this pull request unmergeable. Please resolve the merge conflicts.

@bholley bholley force-pushed the bholley:fix_parallelism branch from b298f06 to a182ae4 May 21, 2017
@bholley
Copy link
Contributor Author

bholley commented May 21, 2017

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

bors-servo commented May 21, 2017

📌 Commit a182ae4 has been approved by emilio

@bors-servo
Copy link
Contributor

bors-servo commented May 21, 2017

Testing commit a182ae4 with merge f14eeb0...

bors-servo added a commit that referenced this pull request May 21, 2017
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
Copy link
Contributor

bors-servo commented May 21, 2017

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev
Approved by: emilio
Pushing f14eeb0 to master...

@bors-servo bors-servo merged commit a182ae4 into servo:master May 21, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@mbrubeck mbrubeck mentioned this pull request Jun 6, 2017
3 of 3 tasks complete
bors-servo added a commit that referenced this pull request Jun 8, 2017
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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.