From 827b9e4be281e3a4af043e027746f3558ab543c3 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Wed, 22 Aug 2012 18:44:14 +0200 Subject: [PATCH] Removing an unnecessary sorting step. --- Contractor/EdgeBasedGraphFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Contractor/EdgeBasedGraphFactory.cpp b/Contractor/EdgeBasedGraphFactory.cpp index 3f257e06c..7ade03f47 100644 --- a/Contractor/EdgeBasedGraphFactory.cpp +++ b/Contractor/EdgeBasedGraphFactory.cpp @@ -349,8 +349,8 @@ void EdgeBasedGraphFactory::Run(const char * originalEdgeDataFilename) { originalEdgeDataOutFile.write((char*)&numberOfOriginalEdges, sizeof(unsigned)); originalEdgeDataOutFile.close(); - INFO("Sorting edge-based Nodes"); - std::sort(edgeBasedNodes.begin(), edgeBasedNodes.end()); +// INFO("Sorting edge-based Nodes"); +// std::sort(edgeBasedNodes.begin(), edgeBasedNodes.end()); // INFO("Removing duplicate nodes (if any)"); // edgeBasedNodes.erase( std::unique(edgeBasedNodes.begin(), edgeBasedNodes.end()), edgeBasedNodes.end() ); // INFO("Applying vector self-swap trick to free up memory");