-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add skip predicate to inrange, fixes #53 #56
base: master
Are you sure you want to change the base?
Conversation
3657a02
to
3ff2018
Compare
Codecov Report
@@ Coverage Diff @@
## master #56 +/- ##
==========================================
+ Coverage 93.89% 93.96% +0.07%
==========================================
Files 14 14
Lines 508 514 +6
==========================================
+ Hits 477 483 +6
Misses 31 31
Continue to review full report at Codecov.
|
Straightforward huh? ;) Benchmark:
Master:
This PR:
So |
Whoops, sorry about that. So the two function signature styles here really aren't equivalent in the case of In some initial tests, it appears to me that forcing specialization for all methods that take |
3ff2018
to
49f89e8
Compare
I went ahead and forced specialization for every occurrence of The comparison was produced by running these commands with
|
bump here? |
Relatively straightforward changes to the inrange methods; I also moved the
skip
check up inadd_points_knn!
(https://github.com/schmrlng/NearestNeighbors.jl/blob/3657a02de0c8f78f12c2f797b8b144830509eae8/src/tree_ops.jl#L93) to potentially save anevaluate
call.