Skip to content

2170 stops linker much slower#1

Open
pieterbuzing wants to merge 4 commits intomasterfrom
2170_stops_linker_much_slower
Open

2170 stops linker much slower#1
pieterbuzing wants to merge 4 commits intomasterfrom
2170_stops_linker_much_slower

Conversation

@pieterbuzing
Copy link

This pull request implements an iterative geographical search for the SimpleStreetSplitter. In a second commit I reduced the number of calls to String.toLowerCase() in the OSMWithTags class. Together these changes reduce the build time of the ile-de-france osm plus the stif gtfs file from 6.8 minutes to 3.5 minutes on my machine.
I could not observe any huge spikes in memory allocation, nor did I try to reduce that.

This improves the performance of the linker (opentripplanner#2170) considerably.
Instead of examining all edges within a 1 km radius we now do
this in a number of iterations, each time doubling the radius.
Usually the first iteration suffices in a dense area.
Working on opentripplanner#2170 I found that removing these
String.toLowerCase() calls gives a 10% speedup.
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