mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-26 15:53:36 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -8,9 +8,10 @@
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
|
||||
#include "3party/ankerl/unordered_dense.h"
|
||||
|
||||
#include "cppjansson/cppjansson.hpp"
|
||||
|
||||
#include "private.h"
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "3party/ankerl/unordered_dense.h"
|
||||
|
||||
namespace storage
|
||||
{
|
||||
@@ -13,7 +14,7 @@ namespace diffs
|
||||
{
|
||||
struct LocalMapsInfo final
|
||||
{
|
||||
using NameVersionMap = std::unordered_map<storage::CountryId, uint64_t>;
|
||||
using NameVersionMap = ankerl::unordered_dense::map<storage::CountryId, uint64_t>;
|
||||
|
||||
uint64_t m_currentDataVersion = 0;
|
||||
NameVersionMap m_localMaps;
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "3party/ankerl/unordered_dense.h"
|
||||
|
||||
namespace storage
|
||||
{
|
||||
@@ -26,6 +27,6 @@ struct DiffInfo final
|
||||
bool m_isApplied = false;
|
||||
};
|
||||
|
||||
using NameDiffInfoMap = std::unordered_map<storage::CountryId, DiffInfo>;
|
||||
using NameDiffInfoMap = ankerl::unordered_dense::map<storage::CountryId, DiffInfo>;
|
||||
} // namespace diffs
|
||||
} // namespace storage
|
||||
|
||||
Reference in New Issue
Block a user