Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(common): replace std unordered container with boost's #937

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/rime/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
#include <memory>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#define BOOST_BIND_NO_PLACEHOLDERS
#include <boost/signals2/connection.hpp>
#include <boost/signals2/signal.hpp>
#include <boost/unordered_map.hpp>
#include <boost/unordered_set.hpp>

#ifdef RIME_ENABLE_LOGGING
#include <glog/logging.h>
Expand All @@ -48,9 +48,9 @@ using std::string;
using std::vector;

template <class Key, class T>
using hash_map = std::unordered_map<Key, T>;
using hash_map = boost::unordered_map<Key, T>;
template <class T>
using hash_set = std::unordered_set<T>;
using hash_set = boost::unordered_set<T>;

template <class T>
using the = std::unique_ptr<T>;
Expand Down