summaryrefslogtreecommitdiff
path: root/include/services.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-11-13 15:20:56 -0500
committerAdam <Adam@anope.org>2010-12-12 19:33:58 -0500
commitc792c7f62df41c48d0d813a809e5415cbefa38b2 (patch)
treef7778d83dba9092bdd04ec6cf568c427e34e3218 /include/services.h
parente5127603642d3f04a21480697bdf59517775fd8b (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/services.h')
-rw-r--r--include/services.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/services.h b/include/services.h
index 1b14f5e88..182444238 100644
--- a/include/services.h
+++ b/include/services.h
@@ -195,6 +195,7 @@ extern "C" void __pfnBkCheck() {}
#include <set>
#include "anope.h"
+#include "patricia.h"
/** This class can be used on its own to represent an exception, or derived to represent a module-specific exception.
* When a module whishes to abort, e.g. within a constructor, it should throw an exception using ModuleException or
@@ -844,8 +845,7 @@ struct Exception
/*************************************************************************/
-typedef unordered_map_namespace::unordered_map<Anope::string, Session *, Anope::hash> session_map;
-extern CoreExport session_map SessionList;
+extern CoreExport patricia_tree<Session> SessionList;
struct Session
{