diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-07-17 16:43:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-07-17 16:43:47 +0100 |
commit | 969902f04569ab12e69e0d57ef1f6e9f0c42f855 (patch) | |
tree | 2d4ae6f19a613c4327e94da917aa89694dd2ff00 /src/libutil | |
parent | 93022e6207ed15f8dd231ad43511d7c9e3f2eee8 (diff) | |
download | rspamd-969902f04569ab12e69e0d57ef1f6e9f0c42f855.tar.gz rspamd-969902f04569ab12e69e0d57ef1f6e9f0c42f855.zip |
[Rework] Use another version of hash table from the same author
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/cxx/hash_util.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/cxx/hash_util.hxx b/src/libutil/cxx/hash_util.hxx index d8529774e..afad29fa5 100644 --- a/src/libutil/cxx/hash_util.hxx +++ b/src/libutil/cxx/hash_util.hxx @@ -20,7 +20,7 @@ #include <string_view> #include <string> -#include "contrib/robin-hood/robin_hood.h" +#include "contrib/ankerl/unordered_dense.h" namespace rspamd { @@ -81,10 +81,10 @@ struct smart_str_equal { struct smart_str_hash { using is_transparent = void; auto operator()(const std::string &a) const { - return robin_hood::hash<std::string>()(a); + return ankerl::unordered_dense::hash<std::string>()(a); } auto operator()(const std::string_view &a) const { - return robin_hood::hash<std::string_view>()(a); + return ankerl::unordered_dense::hash<std::string_view>()(a); } }; |