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