-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use lazy indexing repeated expression caching to optimize predicates #715
Merged
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
68799cb
Remove potentially unused code
seadowg 5c35208
Extract predicate filtering to a method
seadowg d7c37b2
Use chained approach for caching implemenation
seadowg 5b61f24
Simplify chain with recursive implementation
seadowg e88f90d
Allow chain to built up rather than set
seadowg beb837f
Use lambda instead of anonymous
seadowg a9cf53f
Implement limited between answer predicate caching
seadowg dbe239c
Add failing test for case where relative expression is on right hand …
seadowg b069f4c
Only allow expressions where the left side is relative
seadowg c8f0d1f
Rename param
seadowg a8dc7bd
Correct test form
seadowg 890454d
Add stub for potentially failing case
seadowg 8447ba3
Add failing test for cmatching predicates that come after different ones
seadowg 5884aeb
Add check for potential regression
seadowg d50cbfc
Disable predicate caching for multiple predicates for the moment
seadowg de743ff
Add stub failing tests for other scenarios we want to make sure are o…
seadowg fbb0a14
Rewrite tests with Scenario DSL
seadowg 4816c1b
Add passing test for comparison case
seadowg ab7226f
Add test for failing comp case
seadowg fc9b983
Support caching for cmp predicates
seadowg ae070b5
Add test for func case
seadowg b543f38
Evaluate eq predicates with index
seadowg 3399e34
Split indexing caching out
seadowg aa9bcf2
Rename classes
seadowg e559d3e
Pull out expression parsing logic
seadowg 6785e5a
Rename class
seadowg 68c9667
Add failing tests for supporting more expressions
seadowg 140f7cd
Support expressions regardless of direction
seadowg 4fe85ae
Support numeric and string literals for index caching
seadowg a0c4568
Don't try and index nested nodesets
seadowg e8cdc1b
Rename class
seadowg aa21452
Move evaluation logic into class
seadowg 59cb3f9
Fix different types of eq being confused
seadowg 2bb898f
Prefer path expressions in regression tests where it's possible
seadowg fa1a824
Correct name of test
seadowg 2753251
Don't apply caching to expressions on main instance
seadowg 7ded84f
Add caching for first predicate in chain
seadowg b496772
Pull indexing data structure code out of predicate filter
seadowg 3cc5c76
Correct Measure implementation
seadowg adc1463
Remove unused method
seadowg 31fbd2f
Nest interface
seadowg fcf5703
Create default filter chain
seadowg a30fade
Remove interface that's only used in one class
seadowg 44d944a
Add ability to add predicate filter
seadowg 93a6d6c
Improve interface for clients
seadowg 2dc034d
Move nesting check to EvaluationContext
seadowg f08c2b3
Add test to check we aren't increasing load time when indexing
seadowg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm having trouble convincing myself that the whole condition is ok to delete. Can you explain the reasoning please? Or is it just that there are no tests for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It had no tests and I couldn't explain the reasoning for it. Agreed it feels scary to delete, but it's also completely unexplained code. Do you feel like we need to add the logic back in? I couldn't come up with an example at the time, but I was heavily down in the weeds. Maybe we'd have more success reverse engineering a test now.