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

improve performance of building multipolygons with a huge number of member ways #287

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

tyrasd
Copy link
Member

@tyrasd tyrasd commented Nov 27, 2020

This improves performance significantly for multipolygons which have a very large number of outer member ways. Some of them (e.g. relation/6677259) have > 10k members, which causes slow processing in the buildRings (formerly join) helper function.

In one test (with the particularly heavy example from above), this reduces the geometry building from 6 minutes down to 0.5 seconds for one particularly members heavy multipolygon.

@tyrasd tyrasd added the performance Performance optimizations, bottlenecks of the current pipeline, etc. label Nov 27, 2020
@tyrasd tyrasd added this to the release 0.6.0 milestone Nov 27, 2020
…ember ways

This improves performance significantly for multipolygons which have a very large number of outer member ways. Some of them (e.g. 6677259) have > 10k members, which causes slow processing in the `buildRings` (formerly `join`) helper function.

In one test, this reduces the geometry building from 6 minutes down to 2.5 seconds for one particularly members heavy multipolygon.
@tyrasd tyrasd force-pushed the performance-wayheavy-multipolygons branch from 4507c30 to 5a0fee6 Compare November 27, 2020 16:35
Copy link
Member

@rtroilo rtroilo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you very much!

@tyrasd tyrasd merged commit f64dfcf into master Dec 2, 2020
@tyrasd tyrasd deleted the performance-wayheavy-multipolygons branch December 2, 2020 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance optimizations, bottlenecks of the current pipeline, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants