Commit 80e6d0d
committed
Optimize XPath step
If a predicate of xpath is position-independent, we don't need to create nodesets that has many duplicated nodes with different positions.
Implements optimization of preceding-sibling/following-sibling with simple positional predicates as an example.
We can add more optimizations for other axis in the future.1 parent 5815baf commit 80e6d0d
5 files changed
Lines changed: 506 additions & 180 deletions
File tree
- lib/rexml
- test/xpath
0 commit comments