mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Use the bloom filter for child selectors.
This speeds up bloom-basic-ref.html by 4x on my machine.
This commit is contained in:
parent
f537fbd08f
commit
f13ed246fd
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