Skip to content

Conversation

@ctsims
Copy link
Member

@ctsims ctsims commented May 26, 2020

New optimization for the xpath engine.

Naively identifies the predicate pattern

X or Y or X and Y

when X and Y are both indexed lookups, and performs the lookup by doing both indexed lookups independently against their index, then performing the appropriate action on the results.

Only implemented on Formplayer initially, since on FormPlayer the indexed lookups are so fast that there are very, very few situations in which this isn't the optimal query path. On Android, it would be important to check the evaluation context first to ensure that the set being evaluated isn't very small.

Copy link
Contributor

@snopoke snopoke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few tests would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants