[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

@@ -20,9 +20,10 @@
#include <memory>
#include <optional>
#include <string>
#include <unordered_set>
#include <vector>
#include "3party/ankerl/unordered_dense.h"
class DataSource;
namespace search
@@ -121,7 +122,7 @@ public:
// This method must be used to enable or disable indexing all current and future
// bookmarks belonging to |groupId|.
void EnableIndexingOfBookmarkGroup(kml::MarkGroupId const & groupId, bool enable);
std::unordered_set<kml::MarkGroupId> const & GetIndexableGroups() const;
ankerl::unordered_dense::set<kml::MarkGroupId> const & GetIndexableGroups() const;
// Returns the bookmarks search to its default, pre-launch state.
// This includes dropping all bookmark data for created bookmarks (efficiently
@@ -175,5 +176,5 @@ private:
// Same as the one in bookmarks::Processor. Duplicated here because
// it is easier than obtaining the information about a group asynchronously
// from |m_engine|.
std::unordered_set<kml::MarkGroupId> m_indexableGroups;
ankerl::unordered_dense::set<kml::MarkGroupId> m_indexableGroups;
};