diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-15 21:54:45 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-15 21:54:45 +0000 |
commit | a551203100f50ff4767d516566f38277bd268110 (patch) | |
tree | 9f277910df7b7357ad8bdb0f7287a3025ad6ce34 /src/dnsqueue.cpp | |
parent | d5fed3976bba0f1082522da9b79b6b1cc93d4c56 (diff) |
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
Diffstat (limited to 'src/dnsqueue.cpp')
-rw-r--r-- | src/dnsqueue.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 1a5113618..90365b5dc 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -65,18 +65,18 @@ using namespace std; extern int MaxWhoResults; -extern std::vector<Module*> modules; -extern std::vector<std::string> module_names; -extern std::vector<ircd_module*> factory; -extern std::vector<int> fd_reap; +extern std::vector<Module*, __single_client_alloc> modules; +extern std::vector<std::string, __single_client_alloc> module_names; +extern std::vector<ircd_module*, __single_client_alloc> factory; +extern std::vector<int, __single_client_alloc> fd_reap; extern int MODCOUNT; -typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash; -typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash; -typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache; -typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash; -typedef std::deque<command_t> command_table; +typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp, __single_client_alloc> user_hash; +typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp, __single_client_alloc> chan_hash; +typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp, __single_client_alloc> address_cache; +typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp, __single_client_alloc> whowas_hash; +typedef std::deque<command_t, __single_client_alloc> command_table; extern user_hash clientlist; extern chan_hash chanlist; |