From a551203100f50ff4767d516566f38277bd268110 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 15 May 2005 21:54:45 +0000 Subject: Changed to use __single_client_alloc, supposedly faster in single-thread situations git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1402 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4464be755..ccf91b6de 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -92,9 +92,9 @@ bool AllowHalfop = true; bool AllowProtect = true; bool AllowFounder = true; -extern std::vector modules; -std::vector module_names; -extern std::vector factory; +extern std::vector modules; +std::vector module_names; +extern std::vector factory; extern int MODCOUNT; int openSockfd[MAXSOCKS]; @@ -107,11 +107,11 @@ time_t TIME = time(NULL), OLDTIME = time(NULL); int kq, lkq, skq; #endif -typedef nspace::hash_map, irc::StrHashComp> user_hash; -typedef nspace::hash_map, irc::StrHashComp> chan_hash; -typedef nspace::hash_map, irc::InAddr_HashComp> address_cache; -typedef nspace::hash_map, irc::StrHashComp> whowas_hash; -typedef std::deque command_table; +typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> user_hash; +typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> chan_hash; +typedef nspace::hash_map, irc::InAddr_HashComp, __single_client_alloc> address_cache; +typedef nspace::hash_map, irc::StrHashComp, __single_client_alloc> whowas_hash; +typedef std::deque command_table; // This table references users by file descriptor. // its an array to make it VERY fast, as all lookups are referenced @@ -153,7 +153,7 @@ void AddWhoWas(userrec* u); std::vector auth_cookies; std::stringstream config_f(stringstream::in | stringstream::out); -std::vector all_opers; +std::vector all_opers; char lowermap[255]; -- cgit v1.2.3