diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-10-26 10:24:57 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-10-26 10:27:50 -0700 |
commit | dbfe85a717b7ac8b9bd30eb51796811c0c651da9 (patch) | |
tree | 45a7f44ce4422e18980f6bffa530ec81c2084f21 /docs/samples/xgconsole.xml | |
parent | 11ce004e040937e17755b3bdf2a1d7f846214f3f (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 'docs/samples/xgconsole.xml')
0 files changed, 0 insertions, 0 deletions