Don't use location cache if not needed
This commit is contained in:
@@ -68,7 +68,8 @@ struct ExtractorConfig final : storage::IOConfig
|
||||
".osrm.icd",
|
||||
".osrm.cnbg",
|
||||
".osrm.cnbg_to_ebg"}),
|
||||
requested_num_threads(0)
|
||||
requested_num_threads(0),
|
||||
use_locations_cache(true)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -88,6 +89,7 @@ struct ExtractorConfig final : storage::IOConfig
|
||||
|
||||
bool use_metadata;
|
||||
bool parse_conditionals;
|
||||
bool use_locations_cache;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,6 +70,8 @@ class ScriptingEnvironment
|
||||
std::vector<std::pair<const osmium::Way &, ExtractionWay>> &resulting_ways,
|
||||
std::vector<std::pair<const osmium::Relation &, ExtractionRelation>> &resulting_relations,
|
||||
std::vector<InputConditionalTurnRestriction> &resulting_restrictions) = 0;
|
||||
|
||||
virtual bool HasLocationDependentData() const = 0;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,6 +91,8 @@ class Sol2ScriptingEnvironment final : public ScriptingEnvironment
|
||||
std::vector<std::pair<const osmium::Relation &, ExtractionRelation>> &resulting_relations,
|
||||
std::vector<InputConditionalTurnRestriction> &resulting_restrictions) override;
|
||||
|
||||
bool HasLocationDependentData() const { return !location_dependent_data.empty(); }
|
||||
|
||||
private:
|
||||
LuaScriptingContext &GetSol2Context();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user