mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-07 21:13:55 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user