[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 03132c6877
commit ef6522ed28
282 changed files with 4386 additions and 1456 deletions

View File

@@ -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")}},