[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

@@ -19,9 +19,10 @@
#include <memory>
#include <string>
#include <type_traits>
#include <unordered_map>
#include <vector>
#include "3party/ankerl/unordered_dense.h"
// Classes for reading and writing any data in file with map of offsets for
// fast searching in memory by some key.
namespace generator
@@ -141,7 +142,7 @@ public:
private:
std::unique_ptr<PointStorageReaderInterface> m_storageReader;
std::unordered_map<std::string, IndexFileReader> m_fileReaders;
ankerl::unordered_dense::map<std::string, IndexFileReader> m_fileReaders;
};
// It's thread-safe method.
@@ -152,7 +153,7 @@ public:
private:
std::mutex m_mutex;
std::unordered_map<std::string, AllocatedObjects> m_objects;
ankerl::unordered_dense::map<std::string, AllocatedObjects> m_objects;
};
class OSMElementCacheReader : public OSMElementCacheReaderInterface