From c792c7f62df41c48d0d813a809e5415cbefa38b2 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 13 Nov 2010 15:20:56 -0500 Subject: Switched the system for storing users, channels, and sesions to a patricia tree from STL's unordered_map, which was giving horrible performance. --- src/logger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/logger.cpp') diff --git a/src/logger.cpp b/src/logger.cpp index e2833b2c8..dbcb9cf60 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -36,9 +36,9 @@ void InitLogChannels(ServerConfig *config) c->SetFlag(CH_LOGCHAN); c->SetFlag(CH_PERSIST); - for (botinfo_map::const_iterator bit = BotListByNick.begin(), bit_end = BotListByNick.end(); bit != bit_end; ++bit) + for (patricia_tree::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) { - BotInfo *bi = bit->second; + BotInfo *bi = *it; if (bi->HasFlag(BI_CORE) && !c->FindUser(bi)) { -- cgit