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

Add faster MathUtil.hypot function #1112

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

dr-jts
Copy link
Contributor

@dr-jts dr-jts commented Jan 23, 2025

This PR adds a function MathUtil.hypot which is faster than the standard Math.hypot function.

This is a replacement for #923, since that change caused performance problems.

Fixes #1110

@dr-jts dr-jts merged commit aa75581 into locationtech:master Jan 23, 2025
2 checks passed
@dr-jts dr-jts deleted the use-mathutil-hypot branch January 23, 2025 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GeometrySnapper runtime dominated by slow hypot().
1 participant