summaryrefslogtreecommitdiff
path: root/sfx2/source/notebookbar
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-05 15:40:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-08 11:46:03 +0200
commit306758ab3e06f7c730bb1625c2f3fcce7a912fa3 (patch)
treea677004940b62b90b6df01641189efcceb36978f /sfx2/source/notebookbar
parente610999b99d14675342649c21f5100e0d12a795c (diff)
tdf#117066 Saving ODT document with ~1500 bookmarks is slow, part 5
Individually, these don't make much difference, but they add up to a halving the time to save on my machine. OStorageImpl is spending time iterating over its m_aChildrenVector to find stuff by name, so just use a std::unordered_map. Also return iterator from FindElement, so we can avoid searching the map twice. This was probably the biggest win. Change-Id: I30776bad5377d14144fc7a47e86527e2cdb62a83 Reviewed-on: https://gerrit.libreoffice.org/70313 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/notebookbar')
0 files changed, 0 insertions, 0 deletions