[core] Switch to ankerl::unordered_dense

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-11-24 17:34:56 +00:00
parent 03132c6877
commit ef6522ed28
282 changed files with 4386 additions and 1456 deletions

View File

@@ -22,9 +22,10 @@
#include <memory>
#include <optional>
#include <unordered_map>
#include <vector>
#include "3party/ankerl/unordered_dense.h"
namespace routing
{
bool IsUTurn(Segment const & u, Segment const & v);
@@ -42,7 +43,7 @@ public:
template <typename VertexType>
using Parents = typename AStarGraph<VertexType, void, void>::Parents;
using Restrictions = std::unordered_map<uint32_t, std::vector<std::vector<uint32_t>>>;
using Restrictions = ankerl::unordered_dense::map<uint32_t, std::vector<std::vector<uint32_t>>>;
using SegmentEdgeListT = SmallList<SegmentEdge>;
using JointEdgeListT = SmallList<JointEdge>;
@@ -203,7 +204,7 @@ private:
//
// If m_noUTurnRestrictions.count(featureId) == 0, that means, that there are no any
// no_u_turn restriction at the feature with id = featureId.
std::unordered_map<uint32_t, UTurnEnding> m_noUTurnRestrictions;
ankerl::unordered_dense::map<uint32_t, UTurnEnding> m_noUTurnRestrictions;
RoadAccess m_roadAccess;
RoadPenalty m_roadPenalty;
RoutingOptions m_avoidRoutingOptions;