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 upHashMap (and therefore DOM nodes) grew by 8 bytes #15704
Comments
|
Is the number of handlers for a given event target expected to be small? Could we get away with a I’m also looking at |
|
Correction: 40/48 is with the default |
|
I don't care either way. One day we will optimise such things extensively, but today is not the day. |
|
Ok. Let’s increase expected sizes in unit tests next time we rustup. |
Update to rustc 1.17.0-nightly (8c72b7651 2017-03-11) This fixes the DOM node size regression introduced by a previous Rust update: #15704 <!-- Please describe your changes on the following line: --> --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/15911) <!-- Reviewable:end -->
Update to rustc 1.17.0-nightly (8c72b7651 2017-03-11) This fixes the DOM node size regression introduced by a previous Rust update: #15704 <!-- Please describe your changes on the following line: --> --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/15911) <!-- Reviewable:end -->
…03-11) (from servo:rustup_); r=emilio This fixes the DOM node size regression introduced by a previous Rust update: servo/servo#15704 <!-- Please describe your changes on the following line: --> --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: e102577fe498c8f0cee43ba80b21dc9430be1e2b --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 034771746b27e5a6c7e2e96948a366d26f92cd6b
…03-11) (from servo:rustup_); r=emilio This fixes the DOM node size regression introduced by a previous Rust update: servo/servo#15704 <!-- Please describe your changes on the following line: --> --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: e102577fe498c8f0cee43ba80b21dc9430be1e2b
…03-11) (from servo:rustup_); r=emilio This fixes the DOM node size regression introduced by a previous Rust update: servo/servo#15704 <!-- Please describe your changes on the following line: --> --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: e102577fe498c8f0cee43ba80b21dc9430be1e2b
Fix servo#15704
This fixes the DOM node size regression introduced by a previous Rust update: servo#15704
…03-11) (from servo:rustup_); r=emilio This fixes the DOM node size regression introduced by a previous Rust update: servo/servo#15704 <!-- Please describe your changes on the following line: --> --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: e102577fe498c8f0cee43ba80b21dc9430be1e2b UltraBlame original commit: e6e23086b53b57b3b3b4da8fd99d6bcb9159a317
…03-11) (from servo:rustup_); r=emilio This fixes the DOM node size regression introduced by a previous Rust update: servo/servo#15704 <!-- Please describe your changes on the following line: --> --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: e102577fe498c8f0cee43ba80b21dc9430be1e2b UltraBlame original commit: e6e23086b53b57b3b3b4da8fd99d6bcb9159a317
…03-11) (from servo:rustup_); r=emilio This fixes the DOM node size regression introduced by a previous Rust update: servo/servo#15704 <!-- Please describe your changes on the following line: --> --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: e102577fe498c8f0cee43ba80b21dc9430be1e2b UltraBlame original commit: e6e23086b53b57b3b3b4da8fd99d6bcb9159a317
HashMapgrew by 8 bytes in rust-lang/rust#38368.script::dom::event_target::EventTargetcontains:and DOM nodes contain
EventTarget, so they all grew by the same amount, and unit tests intests/unit/script/size_of.rsfail when updating the compiler: #15565 (comment)@jdm @Ms2ger @nox What do you think? Should we take the hit and increase the expect size in unit tests, or try to get this space back somehow?