Skip to content

Add faster MathUtil.hypot function#1112

Merged
dr-jts merged 1 commit intolocationtech:masterfrom
dr-jts:use-mathutil-hypot
Jan 23, 2025
Merged

Add faster MathUtil.hypot function#1112
dr-jts merged 1 commit intolocationtech:masterfrom
dr-jts:use-mathutil-hypot

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