From c792c7f62df41c48d0d813a809e5415cbefa38b2 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 13 Nov 2010 15:20:56 -0500 Subject: Switched the system for storing users, channels, and sesions to a patricia tree from STL's unordered_map, which was giving horrible performance. --- include/services.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/services.h') 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 #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 session_map; -extern CoreExport session_map SessionList; +extern CoreExport patricia_tree SessionList; struct Session { -- cgit