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 upselectors: Get rid of hashing overhead using the precomputed hash atoms have. #16070
Conversation
highfive
commented
Mar 21, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
Mar 21, 2017
|
@bholley: Feedback on this? I'm not too happy enforcing PrecomputedHash everywhere, but it can be made a feature in the future if it's inconvenient for some reason. |
|
Inconvenient for rust-selectors downstream users, I mean, for us it's fine. |
| @@ -21,6 +21,7 @@ matrix: | |||
| - bash etc/ci/check_no_panic.sh | |||
| - bash etc/ci/lockfile_changed.sh | |||
| - bash etc/ci/manifest_changed.sh | |||
| - (cd components/selectors && cargo test) | |||
This comment has been minimized.
This comment has been minimized.
|
This approach seems fine. Thanks for fixing this emilio! |
| @@ -1201,6 +1201,8 @@ pub mod tests { | |||
| type PseudoElement = PseudoElement; | |||
| } | |||
|
|
|||
| type ShutUpTidy = String; | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
emilio
Mar 25, 2017
Author
Member
(Tidy complains when it sees &String as a function argument, even if in this case is unavoidable because it's generic code).
This comment has been minimized.
This comment has been minimized.
nox
Mar 25, 2017
Member
I see. You can probably do &<Self::Impl as SelectorImpl>::NamespacePrefix though.
|
|
5880fe7
to
6551d04
|
@bors-servo try |
selectors: Get rid of hashing overhead using the precomputed hash atoms have. I realized of this when @bzbarsky mentioned the bloom filter in https://bugzilla.mozilla.org/show_bug.cgi?id=1348935#c7. Right now we hash (the hash) all the time, when we can do better. This requires a change in string-cache, which is at servo/string-cache#183. <!-- 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/16070) <!-- Reviewable:end -->
|
@emilio Is this good to go? |
|
@bzbarsky it should, it's currently waiting for review, yeah. I wanted to wait for the try run to report before that, but bors decided not to publish test results. Needs a squash, but happy to land this if somebody signs it off :) |
|
@bors-servo try |
selectors: Get rid of hashing overhead using the precomputed hash atoms have. I realized of this when @bzbarsky mentioned the bloom filter in https://bugzilla.mozilla.org/show_bug.cgi?id=1348935#c7. Right now we hash (the hash) all the time, when we can do better. This requires a change in string-cache, which is at servo/string-cache#183. <!-- 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/16070) <!-- Reviewable:end -->
|
r? @bholley Leaving it in Bobby's queue, but if someone wants to steal it, please do :) |
|
@bors-servo delegate+ |
|
|
|
|
|
@bors-servo r=bholley That timeout looks unrelated. |
|
|
|
|
|
@bors-servo r- Whoops, the squash is missing though :) |
|
@bors-servo r=bholley |
|
|
selectors: Get rid of hashing overhead using the precomputed hash atoms have. I realized of this when @bzbarsky mentioned the bloom filter in https://bugzilla.mozilla.org/show_bug.cgi?id=1348935#c7. Right now we hash (the hash) all the time, when we can do better. This requires a change in string-cache, which is at servo/string-cache#183. <!-- 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/16070) <!-- Reviewable:end -->
|
|
emilio commentedMar 21, 2017
•
edited by larsbergstrom
I realized of this when @bzbarsky mentioned the bloom filter in https://bugzilla.mozilla.org/show_bug.cgi?id=1348935#c7.
Right now we hash (the hash) all the time, when we can do better.
This requires a change in string-cache, which is at servo/string-cache#183.
This change is