Add skip predicate to inrange, fixes #53#56
Add skip predicate to inrange, fixes #53#56schmrlng wants to merge 2 commits intoKristofferC:masterfrom
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
skipcheck up inadd_points_knn!(https://github.com/schmrlng/NearestNeighbors.jl/blob/3657a02de0c8f78f12c2f797b8b144830509eae8/src/tree_ops.jl#L93) to potentially save anevaluatecall.