summaryrefslogtreecommitdiffstats
path: root/configmgr/source/components.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/components.hxx
parentextensions: MSVC tinderbox wants its InternetGetConnectedStateEx (diff)
downloadcore-bfb978334cea775b8ae5c40ceea050ea0660d80a.tar.gz
core-bfb978334cea775b8ae5c40ceea050ea0660d80a.zip
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/components.hxx')
-rw-r--r--configmgr/source/components.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/configmgr/source/components.hxx b/configmgr/source/components.hxx
index 4edaeec1eba6..48c1f7a73199 100644
--- a/configmgr/source/components.hxx
+++ b/configmgr/source/components.hxx
@@ -148,8 +148,7 @@ private:
typedef std::set< RootAccess * > WeakRootSet;
typedef
- std::map<
- OUString,
+ config_map<
com::sun::star::uno::Reference<
com::sun::star::beans::XPropertySet > >
ExternalServices;