Commit 42c4307
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 1317467 commit 42c4307
6 files changed
Lines changed: 542 additions & 328 deletions
File tree
- lib/rexml
- test/xpath
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments