Load edge based graph to memory in one block and then update

This commit is contained in:
Patrick Niklaus
2017-03-15 01:34:27 +00:00
committed by Patrick Niklaus
parent 4684a498c4
commit eb2e4d0aaf
3 changed files with 90 additions and 109 deletions
@@ -20,6 +20,9 @@ std::vector<ContractorEdge> adaptToContractorInput(InputEdgeContainer input_edge
for (const auto &input_edge : input_edge_list)
{
if (input_edge.data.weight == INVALID_EDGE_WEIGHT)
continue;
#ifndef NDEBUG
const unsigned int constexpr DAY_IN_DECI_SECONDS = 24 * 60 * 60 * 10;
if (static_cast<unsigned int>(std::max(input_edge.data.weight, 1)) > DAY_IN_DECI_SECONDS)