1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 11:13:13 +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 -2
View File
@@ -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
{