Skip to content

Conversation

@rjmac
Copy link
Contributor

@rjmac rjmac commented Jan 5, 2021

With large polygons and lots of holes, this can be extremely slow, so
I've converted it to Rust and done some optimization on the contains
raycast. For the problematic shapefile that exposed this, processing
was a bit under 50x slower than with the Rust code.

rjmac added 7 commits January 5, 2021 13:04
With large polygons and lots of holes, this can be _extremely_ slow, so
I've converted it to Rust and done some optimization on the contains
raycast.  For the problematic shapefile that exposed this, processing
was a bit under 50x slower than with the Rust code.
If there's a multipolygon with more than one polygon and a hole that
doesn't fit in any of them, the Elixir version will attach the hole to
the last polygon.
This doesn't actually seem to matter, but it's good hygiene
This improves the runtime of the problematic shapefile by another third.
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.

1 participant