mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #16456 - bholley:bloom_children, r=emilio
Use the bloom filter for child selectors This speeds up bloom-basic-ref.html by 4x on my machine. <!-- 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/16456) <!-- Reviewable:end -->
This commit is contained in:
commit
b37f4952bd
1 changed files with 1 additions and 0 deletions
|
@ -122,6 +122,7 @@ fn may_match<E>(mut selector: &ComplexSelector<E::Impl>,
|
||||||
loop {
|
loop {
|
||||||
match selector.next {
|
match selector.next {
|
||||||
None => break,
|
None => break,
|
||||||
|
Some((ref cs, Combinator::Child)) |
|
||||||
Some((ref cs, Combinator::Descendant)) => selector = &**cs,
|
Some((ref cs, Combinator::Descendant)) => selector = &**cs,
|
||||||
Some((ref cs, _)) => {
|
Some((ref cs, _)) => {
|
||||||
selector = &**cs;
|
selector = &**cs;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue