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

Come up with a faster algorithm for DuplicateNodeRemover #5279

Merged
merged 5 commits into from
Mar 7, 2022

Conversation

bmarchant
Copy link
Contributor

The real slow down wasn't in the use of the ClosePointHash but in the way that we replaced nodes, one at a time searching all relations and ways for that node, replacing it and reindexing the OsmMapIndex. Here we iterate the relations, ways, and nodes only once looking for all replacements and doing all of them in one fell swoop.

Closes #3710

@bmarchant bmarchant self-assigned this Mar 5, 2022
@bmarchant bmarchant merged commit b2e8a82 into master Mar 7, 2022
@bmarchant bmarchant deleted the faster_duplicate_node_remover_3710 branch March 7, 2022 21:08
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.

Come up with a faster alg for DuplicateNodeRemover
1 participant