Use mmap instead of read - it's a lot faster here.
Also clean up construction of STRONG_TYPEDEF so that it can be
packed properly in structs (this explains all the () -> {}) changes
here.
This commit is contained in:
@@ -613,7 +613,7 @@ int Storage::Run()
|
||||
{
|
||||
nodes_input_stream.read((char *)¤t_node, sizeof(extractor::QueryNode));
|
||||
coordinates_ptr[i] = util::Coordinate(current_node.lon, current_node.lat);
|
||||
osmnodeid_list.push_back(OSMNodeID(current_node.node_id));
|
||||
osmnodeid_list.push_back(current_node.node_id);
|
||||
}
|
||||
nodes_input_stream.close();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user