From b907d7d682ac7f471a304695ef2739b3676570a4 Mon Sep 17 00:00:00 2001 From: WhiredPlanck Date: Fri, 11 Oct 2024 22:41:58 +0800 Subject: [PATCH] perf(common): replace std unordered container with boost's (#937) The latter has considerable performance improvement compared with the former. --- src/rime/common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rime/common.h b/src/rime/common.h index fc34b8bb4..01f068e87 100644 --- a/src/rime/common.h +++ b/src/rime/common.h @@ -16,13 +16,13 @@ #include #include #include -#include -#include #include #include #define BOOST_BIND_NO_PLACEHOLDERS #include #include +#include +#include #ifdef RIME_ENABLE_LOGGING #include @@ -48,9 +48,9 @@ using std::string; using std::vector; template -using hash_map = std::unordered_map; +using hash_map = boost::unordered_map; template -using hash_set = std::unordered_set; +using hash_set = boost::unordered_set; template using the = std::unique_ptr;