diff options
author | Adam <Adam@anope.org> | 2010-11-13 15:20:56 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-12 19:33:58 -0500 |
commit | c792c7f62df41c48d0d813a809e5415cbefa38b2 (patch) | |
tree | f7778d83dba9092bdd04ec6cf568c427e34e3218 /include/users.h | |
parent | e5127603642d3f04a21480697bdf59517775fd8b (diff) |
Switched the system for storing users, channels, and sesions to a patricia
tree from STL's unordered_map, which was giving horrible performance.
Diffstat (limited to 'include/users.h')
-rw-r--r-- | include/users.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/users.h b/include/users.h index 776ce450c..6aed13548 100644 --- a/include/users.h +++ b/include/users.h @@ -8,14 +8,8 @@ #ifndef USERS_H #define USERS_H -/* Hash maps used for users. Note UserListByUID will not be used on non-TS6 IRCds, and should never - * be assumed to have users - */ -typedef unordered_map_namespace::unordered_map<Anope::string, User *, ci::hash, std::equal_to<ci::string> > user_map; -typedef unordered_map_namespace::unordered_map<Anope::string, User *, Anope::hash> user_uid_map; - -extern CoreExport user_map UserListByNick; -extern CoreExport user_uid_map UserListByUID; +extern CoreExport patricia_tree<User, std::equal_to<ci::string> > UserListByNick; +extern CoreExport patricia_tree<User> UserListByUID; class CoreExport ChannelStatus : public Flags<ChannelModeName, CMODE_END * 2> { |