mirror of
https://github.com/anope/anope.git
synced 2026-06-25 04:56:39 +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
@@ -37,9 +37,9 @@ void introduce_user(const Anope::string &user)
|
||||
}
|
||||
|
||||
/* We make the bots go online */
|
||||
for (user_map::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; ++it)
|
||||
for (patricia_tree<User>::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; ++it)
|
||||
{
|
||||
User *u = it->second;
|
||||
User *u = *it;
|
||||
|
||||
if (user.empty() || u->nick.equals_ci(user))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user