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 upLow hanging Dromaeo fruit #6900
Conversation
|
cc @metajack |
87cb61a
to
b031044
|
Doesn’t
|
b031044
to
7ec37b8
|
Fixed comment, added a couple more perf fixes. |
|
Looks good to me except that I don’t know what the |
|
Are debug_asserts checked in homu builds? The |
|
They are not presently checked in WPT tests since we started running the tests in release mode. I think we could fix that with Cargo profiles, but I would like to do that as a followup since this is an important performance fix. |
|
I would like to see Dromaeo before and after numbers for this. |
|
|
|
@jdm Here's a link with the performance numbers. There seems to be a lot of noise, but it looks positive overall. https://docs.google.com/spreadsheets/d/1CPBJmvTqNEAAGWFQQzfJ8YKNxEQ7AL2wJ2gagt5Td3o/edit?usp=sharing |
7ec37b8
to
2f07026
|
What's the explanation for the 40-50% regressions? I'm not as concerned about the other ones. |
|
I'll run again. I suspect it's just that the tests are really noisy. |
|
One of the 50% regressions is SunSpider, which pretty much has to be noise because it doesn't touch the DOM at all. |
|
@metajack I did another run and updated the spreadsheet. It looks like Dromaeo is just too noisy in Servo to really draw any conclusions here. |
This comment has been minimized.
This comment has been minimized.
nox
commented on 2f07026
Sep 20, 2015
|
|
|
@pcwalton For first commit, you can still improve the asserts themselves by not allocating a lowercase name and traversing it only once. |
|
Yes, third commit looks fine. |
…it, r=jdm script: Stop reallocating so much when converting DOM strings to JS values. This is split out from #6900. `size_hint()` in `utf16_units()` seems busted, so we do it ourselves. r? @jdm <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7765) <!-- Reviewable:end -->
|
Closing this PR in favour of future work that eventually allows us to move to debug_assert! without losing confidence that we'll actually detect regressions. |
pcwalton commentedAug 2, 2015
I took a look at the profile and fixed some obvious issues.
Didn't have time to get actual performance numbers on this.
r? @jdm