feat: unify turn_penalties_index dump same with turn_weight_penalties and turn_duration_penalties

This commit is contained in:
Jay Zhang
2020-10-23 09:38:56 +00:00
parent 1ba8aba466
commit 7d28b7aa3a
3 changed files with 28 additions and 35 deletions
+3
View File
@@ -432,6 +432,9 @@ updateTurnPenalties(const UpdaterConfig &config,
{
const auto weight_multiplier = profile_properties.GetWeightMultiplier();
// [NOTE] turn_index_blocks could be simply loaded by `files::readTurnPenaltiesIndex()`,
// however, we leave the below mmap to keep compatiblity.
// Use `files::readTurnPenaltiesIndex()` instead once the compatiblity is not that important.
// Mapped file pointer for turn indices
boost::iostreams::mapped_file_source turn_index_region;
const extractor::lookup::TurnIndexBlock *turn_index_blocks;