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 DistanceOp line-line short-circuit optimizations #534

Merged
merged 1 commit into from
Apr 28, 2020

Conversation

dr-jts
Copy link
Contributor

@dr-jts dr-jts commented Apr 28, 2020

Add DistanceOp line-line short-circuit optimizations.
These optimizations add a couple of tests for envelope distance, short-circuiting if the distance is greater than the current minimum.
In a test computing distances from US states to European countries, the performance improved by over 10 times.

Also done in GEOS 314

Signed-off-by: Martin Davis mtnclimb@gmail.com

Signed-off-by: Martin Davis <mtnclimb@gmail.com>
@dr-jts dr-jts self-assigned this Apr 28, 2020
@dr-jts dr-jts merged commit 4846f0e into locationtech:master Apr 28, 2020
@dr-jts dr-jts deleted the improve-distance-line-line branch April 28, 2020 19:06
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.

1 participant