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 upadded dom obj counting to decide sequential/parallel layout (#10110) #12862
Conversation
highfive
commented
Aug 14, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Aug 14, 2016
|
This was already reviewed in the original PR, so r=me,metajack I guess, though I think a check with browserhtml would be nice, to see if we parallelize in those cases. @metajack what do you think about the following comments (excluding nits). -S-awaiting-review +S-needs-code-changes Reviewed 6 of 6 files at r1. components/layout_thread/lib.rs, line 403 [r1] (raw file):
nit: extra newline. components/layout_thread/lib.rs, line 741 [r1] (raw file):
maybe merge these two lines? components/layout_thread/lib.rs, line 802 [r1] (raw file):
nit: self.parallel_traversal.shutdown()? components/layout_thread/lib.rs, line 1458 [r1] (raw file):
Is this really needed? components/script/dom/document.rs, line 415 [r1] (raw file):
Also, can you file a followup to update this when nodes are removed or inserted dynamically? Right now it seems to me that components/script/dom/servohtmlparser.rs, line 284 [r1] (raw file):
nit: extra newline. components/script/dom/servohtmlparser.rs, line 342 [r1] (raw file):
nit: So is this, and you can probably take rid of the other below. components/script/parse/html.rs, line 94 [r1] (raw file):
Should this also go in Comments from Reviewable |
|
components/layout_thread/lib.rs, line 403 [r1] (raw file):
|
|
components/layout_thread/lib.rs, line 741 [r1] (raw file):
|
|
components/layout_thread/lib.rs, line 802 [r1] (raw file):
|
|
components/layout_thread/lib.rs, line 1458 [r1] (raw file):
|
|
components/script/dom/servohtmlparser.rs, line 342 [r1] (raw file):
|
|
components/script/dom/servohtmlparser.rs, line 284 [r1] (raw file):
|
|
components/script/parse/html.rs, line 94 [r1] (raw file):
|
|
Reviewed 1 of 1 files at r2, 1 of 1 files at r3. components/script/parse/html.rs, line 94 [r1] (raw file):
|
|
components/script/dom/document.rs, line 415 [r1] (raw file):
|
|
Review status: 4 of 6 files reviewed at latest revision, 2 unresolved discussions. components/script/parse/html.rs, line 94 [r1] (raw file):
|
|
I think the counting should be a new |
|
In this PR, or a follow-up? Comments from Reviewable |
|
@notriddle Yeah not blocking this. |
|
r=me if you think testing with bhtml is not necessary, or if you have done it and it parallelizes/it's not a severe perf impact. |
48b58ae
to
a0de902
|
|
|
Let's see if that fixed it. |
|
@bors-servo try |
added dom obj counting to decide sequential/parallel layout (#10110) This is a rebased version of #11713 --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #10110 (github issue number if applicable). - [X] There are no tests for these changes because it's an optimization with no visible behavioral changes <!-- 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/12862) <!-- Reviewable:end -->
|
|
|
I've finally managed to pass all the DOM tests. That fixed 'em.
Now for more slogging through reftests that fail in sequential mode. |
| @@ -71,9 +71,12 @@ impl VirtualMethods for HTMLTitleElement { | |||
| } | |||
| } | |||
|
|
|||
| fn bind_to_tree(&self, is_in_doc: bool) { | |||
| fn bind_to_tree(&self, tree_in_doc: bool) { | |||
| if let Some(ref s) = self.super_type() { | |||
This comment has been minimized.
This comment has been minimized.
|
@bors-servo try |
|
@bors-servo retry |
added dom obj counting to decide sequential/parallel layout (#10110) This is a rebased version of #11713 --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #10110 (github issue number if applicable). - [X] There are no tests for these changes because it's an optimization with no visible behavioral changes <!-- 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/12862) <!-- Reviewable:end -->
|
|
|
That's not what the vast majority of the existing ones do. @bors-servo r=emilio |
|
|
|
@bors-servo retry |
added dom obj counting to decide sequential/parallel layout (#10110) This is a rebased version of #11713 --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #10110 (github issue number if applicable). - [X] There are no tests for these changes because it's an optimization with no visible behavioral changes <!-- 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/12862) <!-- Reviewable:end -->
|
|
notriddle commentedAug 14, 2016
•
edited by larsbergstrom
This is a rebased version of #11713
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is