Fixes issue #504
This commit is contained in:
parent
f9d336ff88
commit
c4be1d1423
@ -25,16 +25,6 @@ void ExtractionContainers::PrepareData(const std::string & outputFileName, const
|
|||||||
unsigned usedNodeCounter = 0;
|
unsigned usedNodeCounter = 0;
|
||||||
unsigned usedEdgeCounter = 0;
|
unsigned usedEdgeCounter = 0;
|
||||||
double time = get_timestamp();
|
double time = get_timestamp();
|
||||||
// INFO("raw no. of names: " << nameVector.size());
|
|
||||||
// INFO("raw no. of nodes: " << allNodes.size());
|
|
||||||
// INFO("no. of used nodes: " << usedNodeIDs.size());
|
|
||||||
// INFO("raw no. of edges: " << allEdges.size());
|
|
||||||
// INFO("raw no. of ways: " << wayStartEndVector.size());
|
|
||||||
// INFO("raw no. of addresses: " << adressVector.size());
|
|
||||||
// INFO("raw no. of restrictions: " << restrictionsVector.size());
|
|
||||||
|
|
||||||
cout << "[extractor] parsing finished after " << get_timestamp() - time << " seconds" << endl;
|
|
||||||
time = get_timestamp();
|
|
||||||
boost::uint64_t memory_to_use = static_cast<boost::uint64_t>(amountOfRAM) * 1024 * 1024 * 1024;
|
boost::uint64_t memory_to_use = static_cast<boost::uint64_t>(amountOfRAM) * 1024 * 1024 * 1024;
|
||||||
|
|
||||||
cout << "[extractor] Sorting used nodes ... " << flush;
|
cout << "[extractor] Sorting used nodes ... " << flush;
|
||||||
|
@ -170,15 +170,17 @@ int main (int argc, char *argv[]) {
|
|||||||
parser->RegisterLUAState(myLuaState);
|
parser->RegisterLUAState(myLuaState);
|
||||||
|
|
||||||
if(!parser->Init())
|
if(!parser->Init())
|
||||||
INFO("Parser not initialized!");
|
ERR("Parser not initialized!");
|
||||||
|
double time = get_timestamp();
|
||||||
parser->Parse();
|
parser->Parse();
|
||||||
|
INFO("parsing finished after " << get_timestamp() - time << " seconds");
|
||||||
|
|
||||||
externalMemory.PrepareData(outputFileName, restrictionsFileName, amountOfRAM);
|
externalMemory.PrepareData(outputFileName, restrictionsFileName, amountOfRAM);
|
||||||
|
|
||||||
stringMap.clear();
|
stringMap.clear();
|
||||||
delete parser;
|
delete parser;
|
||||||
delete extractCallBacks;
|
delete extractCallBacks;
|
||||||
INFO("[extractor] finished.");
|
INFO("finished");
|
||||||
std::cout << "\nRun:\n"
|
std::cout << "\nRun:\n"
|
||||||
"./osrm-prepare " << outputFileName << " " << restrictionsFileName << std::endl;
|
"./osrm-prepare " << outputFileName << " " << restrictionsFileName << std::endl;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user