summaryrefslogtreecommitdiff
path: root/tests/test_parse.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-27 18:50:09 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-27 18:50:09 -0700
commitc64d4820b142e6df93ccf612d0e4717159a36591 (patch)
tree67b41215c627fa43283fb1b9a3e14e1bd66fa946 /tests/test_parse.cpp
parentdbfe85a717b7ac8b9bd30eb51796811c0c651da9 (diff)
XPath: Optimize [position()=expr] and [last()]
To get more benefits from constant predicate/filter optimization we rewrite [position()=expr] predicates into [expr] for numeric expressions. Right now the rewrite is only for entire expressions - it may be beneficial to split complex expressions like [position()=constant and expr] into [constant][expr] but that is more complicated. last() does not depend on the node set contents so is "constant" as far as our optimization is concerned so we can evaluate it once.
Diffstat (limited to 'tests/test_parse.cpp')
0 files changed, 0 insertions, 0 deletions