Skip to content

Commit fd58c17

Browse files
committed
minor size allocation fix in DijkstraBidirectionRef
1 parent 97342d5 commit fd58c17

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

core/src/main/java/com/graphhopper/routing/AStarBidirection.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package com.graphhopper.routing;
1919

2020
import com.graphhopper.routing.AStar.AStarEntry;
21-
import com.graphhopper.routing.util.FlagEncoder;
2221
import com.graphhopper.routing.util.TraversalMode;
2322
import com.graphhopper.routing.weighting.BeelineWeightApproximator;
2423
import com.graphhopper.routing.weighting.ConsistentWeightApproximator;

core/src/main/java/com/graphhopper/routing/Dijkstra.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818
package com.graphhopper.routing;
1919

20-
import com.graphhopper.routing.util.FlagEncoder;
2120
import com.graphhopper.routing.util.TraversalMode;
2221
import com.graphhopper.routing.weighting.Weighting;
2322
import com.graphhopper.storage.Graph;

core/src/main/java/com/graphhopper/routing/DijkstraBidirectionRef.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected void initCollections(int size) {
5656
openSetFrom = new PriorityQueue<SPTEntry>(size);
5757
bestWeightMapFrom = new TIntObjectHashMap<SPTEntry>(size);
5858

59-
openSetTo = new PriorityQueue<SPTEntry>(size / 10);
59+
openSetTo = new PriorityQueue<SPTEntry>(size);
6060
bestWeightMapTo = new TIntObjectHashMap<SPTEntry>(size);
6161
}
6262

0 commit comments

Comments
 (0)