diff options
author | Adam <Adam@anope.org> | 2010-11-21 00:20:36 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-12 19:35:30 -0500 |
commit | 7790a7f98c56a16e6fed2bf51168881902880c62 (patch) | |
tree | 1c1854ec1ef603385c7c85fb967e0500fbc55315 /src/sessions.cpp | |
parent | 246f44b9888161aecefc81f0ff17ddd893287e3c (diff) |
Allow the patricia tree to store non-pointers
Diffstat (limited to 'src/sessions.cpp')
-rw-r--r-- | src/sessions.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/sessions.cpp b/src/sessions.cpp index aa5d1c29b..a90364160 100644 --- a/src/sessions.cpp +++ b/src/sessions.cpp @@ -35,17 +35,12 @@ * or a range thereof. The first exception that the host matches is the one * used. * - * "Session Limiting" is likely to slow down services when there are frequent - * client connects and disconnects. The size of the exception list can also - * play a large role in this performance decrease. It is therefore recommened - * that you keep the number of exceptions to a minimum. - * * -TheShadow (02 April 1999) */ /*************************************************************************/ -patricia_tree<Session> SessionList; +patricia_tree<Session *> SessionList; std::vector<Exception *> exceptions; @@ -58,7 +53,7 @@ void get_session_stats(long &count, long &mem) count = SessionList.size(); mem = sizeof(Session) * SessionList.size(); - for (patricia_tree<Session>::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; |