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

Optimization to prepared polygon intersection #690

Merged
merged 2 commits into from
Sep 26, 2022

Conversation

dbaston
Copy link
Member

@dbaston dbaston commented Sep 22, 2022

These changes improve performance by about 25% in the following test whose runtime is almost exclusively prepared polygon intersection testing with many large/multipart polygons.

geosop clusterIntersecting -t -q -r 10 -a ~/data/world.wkt

The performance testing was done on top #688 but these changes are independent of it.

The const_cast is not pretty but it is the best that can be done with the current SegmentString API.
…ope checks

Makes a surprisingly large difference in performance test
@dbaston dbaston force-pushed the prepared-polygon-intersects-opt branch from 2f3c2d2 to 83d8e34 Compare September 26, 2022 23:36
@dbaston dbaston merged commit 83d8e34 into libgeos:main Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant