1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 04:03:12 +02:00

Switched the system for storing users, channels, and sesions to a patricia

tree from STL's unordered_map, which was giving horrible performance.
This commit is contained in:
Adam
2010-11-13 15:20:56 -05:00
parent e512760364
commit c792c7f62d
23 changed files with 293 additions and 122 deletions
+2 -4
View File
@@ -12,10 +12,8 @@
class BotInfo;
typedef unordered_map_namespace::unordered_map<Anope::string, BotInfo *, ci::hash, std::equal_to<ci::string> > botinfo_map;
typedef unordered_map_namespace::unordered_map<Anope::string, BotInfo *, Anope::hash> botinfo_uid_map;
extern CoreExport botinfo_map BotListByNick;
extern CoreExport botinfo_uid_map BotListByUID;
extern CoreExport patricia_tree<BotInfo, std::equal_to<ci::string> > BotListByNick;
extern CoreExport patricia_tree<BotInfo> BotListByUID;
/** Flags settable on a bot
*/