summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-01-04 14:07:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-04 16:06:08 +0100
commit746127cf803070c5a695a7cb30a2ecdb5a777e75 (patch)
tree713f63de46f48779b365971b0d71726905b18888 /include
parent7ba99b8d6da07c2133c644de4d1a3613a9fa5a68 (diff)
use deque in SdrObjList
which has much better performance for (a) inserting stuff at the front (b) appending large numbers of items something that happens when constructing large charts - shaves 5% off the load time for large sample bar chart Change-Id: I3ebccbfdc75e4df3ec88eb2dde46acfe0ab0ae7d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127940 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdpage.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/svdpage.hxx b/include/svx/svdpage.hxx
index 065590e85b9a..83c0592f060e 100644
--- a/include/svx/svdpage.hxx
+++ b/include/svx/svdpage.hxx
@@ -34,6 +34,7 @@
#include <memory>
#include <optional>
#include <vector>
+#include <deque>
// predefines
@@ -225,7 +226,7 @@ public:
private:
tools::Rectangle maSdrObjListOutRect;
tools::Rectangle maSdrObjListSnapRect;
- std::vector<SdrObject*> maList;
+ std::deque<SdrObject*> maList;
/// This list, if it exists, defines the navigation order. If it does
/// not exist then maList defines the navigation order.
std::optional<std::vector<tools::WeakReference<SdrObject>>> mxNavigationOrder;