-
Notifications
You must be signed in to change notification settings - Fork 365
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
Port IsValidOp improvements from JTS #464
Conversation
I'm seeing a pretty big performance regression on my Australia test-case: main:
This PR:
|
Ew. Supposed to be faster... hopefully I have some terrible hotspot that'll show up in profile. Also, I'm sure @dr-jts will check your case in JTS and see if it's an algorithmic woopsie. |
Maybe the new algorithm removes some of the indexing that GEOS was using? e.g. #256 |
Here's my data. Nothing special, just an extract from GADM. |
That could well be it. The Nested Shells check in the new IsValidOp code is using a nested loop, so is O(n^2). Easy to fix. I will look at that ASAP. |
JTS has added |
Merged at e151d23 |
Port of locationtech/jts#743 and locationtech/jts#748.