[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

@@ -16,9 +16,10 @@
#include <limits>
#include <memory>
#include <queue>
#include <unordered_set>
#include <vector>
#include "3party/ankerl/unordered_dense.h"
namespace search
{
namespace impl
@@ -94,7 +95,7 @@ bool MatchInTrie(trie::Iterator<ValueList> const & trieRoot, strings::UniChar co
template <typename Filter, typename Value>
class OffsetIntersector
{
using Values = std::unordered_map<Value, bool>;
using Values = ankerl::unordered_dense::map<Value, bool>;
Filter const & m_filter;
std::unique_ptr<Values> m_prevValues;
@@ -218,7 +219,7 @@ struct SearchTrieRequest
// during retrieval from a search index. Semantics of this field
// depends on the search index, for example this can be a set of
// langs from StringUtf8Multilang, or a set of locale indices.
std::unordered_set<int8_t> m_langs;
ankerl::unordered_dense::set<int8_t> m_langs;
};
// Calls |toDo| for each feature accepted by at least one DFA.