Allocates memory for the node info list upfront.

Turns out we were not doing this. Huh.

Callstack:
- 78583d2c8c/include/util/graph_loader.hpp (L65-L68)
- 538bbd47d1/src/extractor/extractor.cpp (L423-L424)
- 78583d2c8c/src/extractor/extractor.cpp (L465-L466)
- 78583d2c8c/src/extractor/extractor.cpp (L254-L261)
This commit is contained in:
Daniel J. Hofmann 2016-11-14 20:55:40 +01:00 committed by Patrick Niklaus
parent 538bbd47d1
commit 7e4020c010

View File

@ -81,6 +81,8 @@ NodeID loadNodesFromFile(std::istream &input_stream,
input_stream.read(reinterpret_cast<char *>(&n), sizeof(NodeID));
SimpleLogger().Write() << "Importing n = " << n << " nodes ";
node_array.reserve(n);
extractor::ExternalMemoryNode current_node;
for (NodeID i = 0; i < n; ++i)
{