diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-29 00:23:11 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-29 00:23:11 +0000 |
commit | 22c83f35d4d65d4c2947830b7795a9e344fa1677 (patch) | |
tree | 43b2a1821b337cc5dbcdea9a814018f4ffc0cb69 /include/xline.h | |
parent | 8782cde20b474cf50f11fc6685c70a785bb3b2be (diff) |
Ok, now each xline will be in two places. The sorted vector and a map, each line type having its own map stored in a map of maps. (RTFS when its done)
This allows for faster checking for simple existence of a line for removal/adding without O(n) lookups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8420 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/xline.h')
-rw-r--r-- | include/xline.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xline.h b/include/xline.h index 6e32944fe..711897e4d 100644 --- a/include/xline.h +++ b/include/xline.h @@ -359,7 +359,7 @@ class CoreExport XLineManager public: - std::map<std::string, ELine *> elines; + std::map<char, std::map<std::string, ELine *> > lookup_lines; /** Constructor * @param Instance A pointer to the creator object |