-
Notifications
You must be signed in to change notification settings - Fork 448
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
GeometrySnapper runtime dominated by slow hypot()
.
#1110
Comments
Do you have a comparison with using I'm fine with reverting the |
Just pulled the code, and swapped out the hypot call. |
Good enough for me. I will look into reverting that PR. |
It's not surprising that I am thinking about creating a |
PR #923 replaced replaced
Math.sqrt(x^2+y^2)
calls withMath.hypot(x,y)
.However this is a huge problem for things like the
GeometrySnapper
that callCoordinate.distance()
repeatedly.For instance, Geometry snapper is spending 83% of its runtime in
hypot()
(on goem with 4k points), which is unacceptable.The text was updated successfully, but these errors were encountered: