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