Skip to content
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 float pointers in Cython/C++ binding function #142

Merged
merged 1 commit into from
Oct 16, 2018

Conversation

jakirkham
Copy link
Member

Change the Cython/C++ binding function, lineRankOrderFilter1D_floating_inplace, to accept floating pointers instead of memoryviews. This cuts down the code generated in the while-loop to convert the pointer to a memoryview and in the Cython/C++ binding function. Should make it easier for compilers to optimize further as the code is basically straight C at this point. Also should help speed up the while-loop a bit more.

Change the Cython/C++ binding function,
`lineRankOrderFilter1D_floating_inplace`, to accept floating pointers
instead of memoryviews. This cuts down the code generated in the
`while`-loop to convert the pointer to a memoryview and in the
Cython/C++ binding function. Should make it easier for compilers to
optimize further as the code is basically straight C at this point. Also
should help speed up the `while`-loop a bit more.
@jakirkham jakirkham merged commit 14585b4 into nanshe-org:master Oct 16, 2018
@jakirkham jakirkham deleted the use_ptr_cython_wrapper branch October 16, 2018 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant