diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-29 05:41:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-29 05:41:03 +0000 |
commit | b0a467e8d3064177e3ceaaa6c207a3e625d2125a (patch) | |
tree | 489182ac0cf4cf360f6060b5ab7c52c16571d780 /include | |
parent | ea3dc510c16a9bd2c35b51eeeccad313badc03c7 (diff) |
Highly optimized userrec saving 1.5k per user
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1550 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 5 | ||||
-rw-r--r-- | include/users.h | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 89ce61ae6..5afdc21fb 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -120,3 +120,8 @@ void AddOper(userrec* user); void DeleteOper(userrec* user); void handle_version(char **parameters, int pcnt, userrec *user); + +// userrec optimization stuff + +void AddServerName(std::string servername); +const char* FindServerNamePtr(std::string servername); diff --git a/include/users.h b/include/users.h index 2c3f2ffc0..a093e633e 100644 --- a/include/users.h +++ b/include/users.h @@ -146,7 +146,7 @@ class userrec : public connection /** The server the user is connected to. */ - char server[256]; + char* server; /** The user's away message. * If this string is empty, the user is not marked as away. @@ -325,10 +325,10 @@ class WhoWasUser { public: char nick[NICKMAX]; - char ident[16]; + char ident[IDENTMAX+1]; char dhost[160]; char host[160]; - char fullname[128]; + char fullname[MAXGECOS+1]; char server[256]; time_t signon; }; |