mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-29 17:23:47 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -137,7 +137,7 @@ void ChargeSocketsHelper::AggregateChargeSocketKey(std::string const & k, std::s
|
||||
}
|
||||
|
||||
// normalize type
|
||||
static std::unordered_map<std::string_view, std::string_view> const kTypeMap = {
|
||||
static ankerl::unordered_dense::map<std::string_view, std::string_view> const kTypeMap = {
|
||||
{"tesla_supercharger", "nacs"},
|
||||
{"tesla_destination", "nacs"},
|
||||
{"tesla_standard", "nacs"},
|
||||
@@ -402,7 +402,7 @@ KeyValueDiffSet ChargeSocketsHelper::Diff(ChargeSocketDescriptors const & oldSoc
|
||||
auto oldKeys = ChargeSocketsHelper(oldSockets).GetOSMKeyValues();
|
||||
auto newKeys = GetOSMKeyValues();
|
||||
|
||||
std::unordered_map<std::string, std::string> oldMap, newMap;
|
||||
ankerl::unordered_dense::map<std::string, std::string> oldMap, newMap;
|
||||
|
||||
for (auto && [k, v] : oldKeys)
|
||||
oldMap.emplace(k, v);
|
||||
|
||||
Reference in New Issue
Block a user