mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 14:43:43 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -11,9 +11,10 @@
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#include "3party/ankerl/unordered_dense.h"
|
||||
|
||||
namespace feature
|
||||
{
|
||||
// A string of connected ways.
|
||||
@@ -70,7 +71,7 @@ public:
|
||||
static OutputData Merge(InputData const & data);
|
||||
|
||||
private:
|
||||
using Buffer = std::unordered_map<uint64_t, LinePtr>;
|
||||
using Buffer = ankerl::unordered_dense::map<uint64_t, LinePtr>;
|
||||
|
||||
static bool TryMerge(LinePtr const & lineString, Buffer & buffer);
|
||||
static bool TryMergeOne(LinePtr const & lineString, Buffer & buffer);
|
||||
|
||||
Reference in New Issue
Block a user