mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-18 00:45:45 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -89,7 +89,7 @@ class MaxspeedsMwmCollector
|
||||
static int constexpr kSpeedsCount = MaxspeedsSerializer::DEFAULT_SPEEDS_COUNT;
|
||||
static int constexpr kOutsideCityIdx = 0;
|
||||
// 0 - outside a city; 1 - inside a city.
|
||||
std::unordered_map<HighwayType, AvgInfo> m_avgSpeeds[kSpeedsCount];
|
||||
ankerl::unordered_dense::map<HighwayType, AvgInfo> m_avgSpeeds[kSpeedsCount];
|
||||
|
||||
base::GeoObjectId GetOsmID(uint32_t fid) const
|
||||
{
|
||||
@@ -151,9 +151,9 @@ public:
|
||||
// Set speed as-is from parent link.
|
||||
if (parentHwType == hwType)
|
||||
return {{s.GetForward(), s.GetUnits()}};
|
||||
/* Commenting this part out as an attempt to solve displayed (and inexistent) max speed in highway links (https://codeberg.org/comaps/comaps/issues/1000)
|
||||
using routing::HighwayType;
|
||||
if ((*parentHwType == HighwayType::HighwayMotorway && hwType == HighwayType::HighwayMotorwayLink) ||
|
||||
/* Commenting this part out as an attempt to solve displayed (and inexistent) max speed in highway links
|
||||
(https://codeberg.org/comaps/comaps/issues/1000) using routing::HighwayType; if ((*parentHwType ==
|
||||
HighwayType::HighwayMotorway && hwType == HighwayType::HighwayMotorwayLink) ||
|
||||
(*parentHwType == HighwayType::HighwayTrunk && hwType == HighwayType::HighwayTrunkLink) ||
|
||||
(*parentHwType == HighwayType::HighwayPrimary && hwType == HighwayType::HighwayPrimaryLink) ||
|
||||
(*parentHwType == HighwayType::HighwaySecondary && hwType == HighwayType::HighwaySecondaryLink) ||
|
||||
@@ -213,7 +213,7 @@ public:
|
||||
if (direction)
|
||||
seg = GetOpposite(seg);
|
||||
|
||||
std::unordered_set<uint32_t> reviewed;
|
||||
ankerl::unordered_dense::set<uint32_t> reviewed;
|
||||
do
|
||||
{
|
||||
LOG_MAX_SPEED(("Input seg =", seg));
|
||||
|
||||
Reference in New Issue
Block a user