diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-08-29 18:58:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-29 18:58:52 -0500 |
commit | 6dfb5f057271e2f32e7190f2925073a1b6b2ac6a (patch) | |
tree | ae005d29b28ae1c5d113efacf49bd6575b22795a /components/script/dom/htmlhtmlelement.rs | |
parent | a338beaa7012f1cbfeebe559e58d1f0186c2cdee (diff) | |
parent | 3e80f482ba99a8c47fc64b77ac9aa3a55c728cc3 (diff) | |
download | servo-6dfb5f057271e2f32e7190f2925073a1b6b2ac6a.tar.gz servo-6dfb5f057271e2f32e7190f2925073a1b6b2ac6a.zip |
Auto merge of #13108 - emilio:stupidest-opt-ever, r=bholley
style: Don't loop over all the set of dependencies always.
<!-- Please describe your changes on the following line: -->
Instead, divide which kind of dependencies could match a mutation. This cuts down incremental restyle time in BrowserHTML quite a bit.
---
<!-- 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
<!-- Either: -->
- [x] There are tests for these changes OR
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
The dependency count is not at all minor, and this way we avoid looping
through all of them in the common cases, mainly either changing state, or
attributes.
<!-- 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/13108)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlhtmlelement.rs')
0 files changed, 0 insertions, 0 deletions