Removing unnecessary over-allocation

This commit is contained in:
DennisOSRM 2012-05-08 11:12:53 +02:00
parent 4f73b4725a
commit 5b247a3699

View File

@ -171,6 +171,7 @@ public:
std::cout << "merged " << edges.size() - edge << " edges out of " << edges.size() << std::endl;
edges.resize( edge );
_graph.reset();
_graph.reset( new _DynamicGraph( nodes, edges ) );
INFO("Finished building dynamic graph");
edges.clear();