Skip to content

Commit d0b6840

Browse files
committed
Optimize single-child nodes.
1 parent ac957ef commit d0b6840

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jsquery_extract.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,10 @@ makeEntries(ExtractedNode *node, MakeEntryHandler handler, Pointer extra)
513513
j++;
514514
}
515515
}
516+
if (j == 1 && (node->type == eAnd || node->type == eOr))
517+
{
518+
return node->args.items[0];
519+
}
516520
if (j > 0)
517521
{
518522
node->args.count = j;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy