-
Notifications
You must be signed in to change notification settings - Fork 3
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
type stability and alloc reduction #8
Conversation
@maxfreu sorry, I seem to have missed your comment here. We're using this quite heavily in GeometryOps.jl now (see JuliaGeo/GeometryOps.jl#259) so would be happy to either co-maintain or move the repo to JuliaGeo, depending on your preference. |
Co-authored-by: Anshul Singhvi <[email protected]>
I tried this and somehow it wasn't faster |
Thanks guys! Pretty cool to receive a PR from you :) If you have no further tweaks, I'll merge. |
No more changes on my side! But you can expect more PRs, we will be using this everywhere :) |
love it, thanks! <3 btw: I don't remember why I used sortperm in the first place xD |
This PR:
sort!
instead ofsortperm
inleafnodes
/parentnodes
as the vector is not used after the sort anywayscratch
insort!