[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 7e561d09d3
commit 0288b97b13
282 changed files with 4385 additions and 1457 deletions

View File

@@ -7,10 +7,11 @@
#include <functional>
#include <iterator>
#include <list>
#include <unordered_map>
#include <utility>
#include <vector>
#include "3party/ankerl/unordered_dense.h"
namespace tesselator
{
typedef std::vector<m2::PointD> PointsT;
@@ -71,7 +72,7 @@ class TrianglesInfo
size_t operator()(std::pair<T1, T2> const & p) const { return math::Hash(p.first, p.second); }
};
using TNeighbours = std::unordered_map<std::pair<int, int>, int, HashPair<int, int>>;
using TNeighbours = ankerl::unordered_dense::map<std::pair<int, int>, int, HashPair<int, int>>;
TNeighbours m_neighbors;
bool AddNeighbour(int p1, int p2, int trg);