summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-04-26 15:19:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-04-26 20:55:58 +0200
commitaf8cb1039fd0cce86d771f4765c7d73c9f39b5a7 (patch)
treea83afc0630e5ec499f9e65df3d1d2a799385a261
parentsw floattable: DOCX import: m_bConvertedTable is now unused (diff)
downloadcore-af8cb1039fd0cce86d771f4765c7d73c9f39b5a7.tar.gz
core-af8cb1039fd0cce86d771f4765c7d73c9f39b5a7.zip
tdf#136749 std::map -> unordered_map
considerably faster when looking up pointers, shaves 10% of time off here Change-Id: I521f8d557a30e4f430caab6b0701ad8da65f99f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151063 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sw/source/core/access/accmap.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 46c0dbaf0714..fdee09f67722 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -89,10 +89,10 @@ public:
typedef const SwFrame * key_type;
typedef uno::WeakReference < XAccessible > mapped_type;
typedef std::pair<const key_type,mapped_type> value_type;
- typedef std::map<key_type, mapped_type>::iterator iterator;
- typedef std::map<key_type, mapped_type>::const_iterator const_iterator;
+ typedef std::unordered_map<key_type, mapped_type>::iterator iterator;
+ typedef std::unordered_map<key_type, mapped_type>::const_iterator const_iterator;
private:
- std::map <key_type, mapped_type> maMap;
+ std::unordered_map <key_type, mapped_type> maMap;
public:
#if OSL_DEBUG_LEVEL > 0