summaryrefslogtreecommitdiff
path: root/tests/test_parse_doctype.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-26 10:24:57 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-26 10:27:50 -0700
commitdbfe85a717b7ac8b9bd30eb51796811c0c651da9 (patch)
tree45a7f44ce4422e18980f6bffa530ec81c2084f21 /tests/test_parse_doctype.cpp
parent11ce004e040937e17755b3bdf2a1d7f846214f3f (diff)
XPath: Only recognize numeric constant expressions
Numeric and boolean constant expressions in filters are different in that to evaluate numeric expressions we need a sorted order, but to evaluate boolean expressions we don't. The previously implemented optimization adds an extra sorting step for constant boolean filters that will be more expensive than redundant computations. Since constant booleans are sort of an edge case, don't do this optimization. This allows us to simplify apply_predicate_const to only handle numbers.
Diffstat (limited to 'tests/test_parse_doctype.cpp')
0 files changed, 0 insertions, 0 deletions