-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[MRG] MAINT Remove get_memview_*
helpers in neighbours.BinaryTree
#19893
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
Conversation
Here are results of some benchmarks. It looks like performances generally are better. I'd like to try on another machine with more cores before concluding.
|
get_memview_*
helpers in neighbours.BinaryTree
get_memview_*
helpers in neighbours.BinaryTree
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.
LGTM, the code is simpler, the tests still pass and there is no performance regression (as expected). +1 for merge as it is.
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.
Thanks @jjerphan !
Thanks @rth: this was an easy win thanks to your original work. 🙂 |
Reference Issues/PRs
Follow up of and closes #15097
See also #4217
What does this implement/fix? Explain your changes.
As indicated by @rth in #15097, the
get_memview_*
Cython helpers inneighbours.BinaryTree
were used because at the time numpy and Cython didn't fully support memoryviews.This removes this adaptor which are not longer needed.
Any other comments?
This is a draft as benchmarks have to be run to access any regression in performance from
main
.