servo: Merge #16456 - Use the bloom filter for child selectors (from bholley:bloom_children); r=emilio

This speeds up bloom-basic-ref.html by 4x on my machine.

Source-Repo: https://github.com/servo/servo
Source-Revision: b37f4952bd6f2c0177ad462e3445ac79dac19ecb
This commit is contained in:
Bobby Holley
2017-04-14 14:26:49 -05:00
parent fa35201ade
commit 24dfbd5118

View File

@@ -122,6 +122,7 @@ fn may_match<E>(mut selector: &ComplexSelector<E::Impl>,
loop {
match selector.next {
None => break,
Some((ref cs, Combinator::Child)) |
Some((ref cs, Combinator::Descendant)) => selector = &**cs,
Some((ref cs, _)) => {
selector = &**cs;