mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-08 13:27:57 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user