mirror of
https://github.com/anope/anope.git
synced 2026-06-27 03:36:37 +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:
@@ -134,9 +134,9 @@ class CommandOSSession : public Command
|
||||
u->SendMessage(OperServ, OPER_SESSION_LIST_HEADER, mincount);
|
||||
u->SendMessage(OperServ, OPER_SESSION_LIST_COLHEAD);
|
||||
|
||||
for (session_map::const_iterator it = SessionList.begin(), it_end = SessionList.end(); it != it_end; ++it)
|
||||
for (patricia_tree<Session>::const_iterator it = SessionList.begin(), it_end = SessionList.end(); it != it_end; ++it)
|
||||
{
|
||||
Session *session = it->second;
|
||||
Session *session = *it;
|
||||
|
||||
if (session->count >= mincount)
|
||||
u->SendMessage(OperServ, OPER_SESSION_LIST_FORMAT, session->count, session->host.c_str());
|
||||
|
||||
Reference in New Issue
Block a user