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 CoveragePolygonValidator section performance optimization #1053

Merged
merged 2 commits into from
May 21, 2024

Conversation

dr-jts
Copy link
Contributor

@dr-jts dr-jts commented May 21, 2024

Improves the performance of CoveragePolygonValidator and CoverageValidator by adding logic to avoid testing sections of ring vertices if the entire section does not overlap the target adjacent polygon.

Performance comparison:

World Polygons G99_5
Statistics: 323 geometries, 329,373 polygons, 459,540 vertices
Old code: 2646 ms
New code: 937 ms

World Polygons G65
Statistics: 323 geometries, 319,646 polygons, 27,706,942 vertices
Old code: 11809 s
New code: 103 s

@dr-jts dr-jts changed the title Add CoveragePolygonValidator section optimization Add CoveragePolygonValidator section performance optimization May 21, 2024
@dr-jts dr-jts merged commit 88303d0 into locationtech:master May 21, 2024
2 checks passed
@dr-jts dr-jts deleted the opt-coverage-validate branch May 21, 2024 21:49
@jodygarnett jodygarnett added this to the 1.20.0 milestone Aug 22, 2024
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.

2 participants