mirror of
https://github.com/anope/anope.git
synced 2026-06-26 07:16:38 +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
@@ -86,9 +86,9 @@ Server::~Server()
|
||||
|
||||
if (Capab.HasFlag(CAPAB_NOQUIT) || Capab.HasFlag(CAPAB_QS))
|
||||
{
|
||||
for (user_map::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; )
|
||||
for (patricia_tree<User>::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end;)
|
||||
{
|
||||
User *u = it->second;
|
||||
User *u = *it;
|
||||
++it;
|
||||
|
||||
if (u->server == this)
|
||||
|
||||
Reference in New Issue
Block a user