[MDSAL-610] Make DOMQueryEvaluator lazy Created: 26/Oct/20 Updated: 27/Oct/20 Resolved: 27/Oct/20 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | DOM runtime |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.15, 7.0.2, 6.0.8 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | Searchable MD-SAL |
| Description |
|
Current implementation of DOMQueryEvaluator is needlessly eager, resulting in complete traversal of the object graph. Users can end up taking only the first match, in which case further traversal is not necessary. |