summaryrefslogtreecommitdiff
path: root/configmgr/source/data.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-06-28 20:10:33 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-06-30 15:36:26 +0100
commitbfb978334cea775b8ae5c40ceea050ea0660d80a (patch)
tree22afeadcc61c6c0eda3d6db07ea339aaa8c9a2f8 /configmgr/source/data.hxx
parent83d00917f2eb949d0b76851d46479361173fdd75 (diff)
configmgr: faster / simpler compare for keys.
A surprising amount of time is/was spent comparing keys in the std::map red/black tree traversing nodes. Since we don't need the data truly sorted, instead sort in length buckets. Kills 90k rtl_ustring_compare_withLength calls on startup, around 0.9% of headless start. Change-Id: Ib23aff151ad50d56bbf2ba3e28882cc81898d9ec
Diffstat (limited to 'configmgr/source/data.hxx')
-rw-r--r--configmgr/source/data.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/configmgr/source/data.hxx b/configmgr/source/data.hxx
index 2e564d953d1e..17a0e1dec879 100644
--- a/configmgr/source/data.hxx
+++ b/configmgr/source/data.hxx
@@ -23,7 +23,7 @@
#include <sal/config.h>
#include <climits>
-#include <map>
+#include "config_map.hxx"
#include <vector>
#include <boost/noncopyable.hpp>
@@ -86,7 +86,7 @@ struct Data: private boost::noncopyable {
OUString const & url);
private:
- typedef std::map< OUString, rtl::Reference< ExtensionXcu > >
+ typedef config_map< rtl::Reference< ExtensionXcu > >
ExtensionXcuAdditions;
rtl::Reference< Node > root_;