diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-10-27 18:50:09 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-10-27 18:50:09 -0700 |
commit | c64d4820b142e6df93ccf612d0e4717159a36591 (patch) | |
tree | 67b41215c627fa43283fb1b9a3e14e1bd66fa946 /contrib | |
parent | dbfe85a717b7ac8b9bd30eb51796811c0c651da9 (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 'contrib')
0 files changed, 0 insertions, 0 deletions