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:
@@ -15,9 +15,10 @@
|
||||
|
||||
#include "base/control_flow.hpp"
|
||||
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
|
||||
#include "3party/ankerl/unordered_dense.h"
|
||||
|
||||
namespace feature
|
||||
{
|
||||
using namespace std;
|
||||
@@ -88,7 +89,7 @@ bool GetBestName(StrUtf8 const & src, vector<int8_t> const & priorityList, strin
|
||||
|
||||
vector<int8_t> GetSimilarLanguages(int8_t lang)
|
||||
{
|
||||
static unordered_map<int8_t, vector<int8_t>> const kSimilarLanguages = {
|
||||
static ankerl::unordered_dense::map<int8_t, vector<int8_t>> const kSimilarLanguages = {
|
||||
{GetIndex("be"), {GetIndex("ru")}},
|
||||
{GetIndex("ja"), {GetIndex("ja_kana"), GetIndex("ja_rm")}},
|
||||
{GetIndex("ko"), {GetIndex("ko_rm")}},
|
||||
|
||||
Reference in New Issue
Block a user