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:
+2
-4
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user