summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-04-08 21:03:23 +0200
committerRobin Gareus <robin@gareus.org>2016-04-08 21:03:23 +0200
commit3def1b2830528319d2b720267e2f153dd17d72c0 (patch)
tree9d595ad5f857d6bc8cd088af0bb038063efcaf8d /libs/pbd/pbd
parentd1dcedaccfd5adfd661724476003410d5d251756 (diff)
more potential session-save speedup.
std:vector trumps std::list speed in all aspects: traversal, insertion (at end) and Deletion. ..but we'll have to be careful about iterators..
Diffstat (limited to 'libs/pbd/pbd')
-rw-r--r--libs/pbd/pbd/xml++.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/libs/pbd/pbd/xml++.h b/libs/pbd/pbd/xml++.h
index 7b8649873a..dac8de67cd 100644
--- a/libs/pbd/pbd/xml++.h
+++ b/libs/pbd/pbd/xml++.h
@@ -28,7 +28,7 @@
*/
#include <string>
-#include <list>
+#include <vector>
#include <unordered_map>
#include <cstdio>
#include <cstdarg>
@@ -43,13 +43,13 @@ class XMLTree;
class XMLNode;
class XMLProperty;
-typedef std::list<XMLNode *> XMLNodeList;
-typedef std::list<boost::shared_ptr<XMLNode> > XMLSharedNodeList;
-typedef XMLNodeList::iterator XMLNodeIterator;
-typedef XMLNodeList::const_iterator XMLNodeConstIterator;
-typedef std::list<XMLProperty*> XMLPropertyList;
-typedef XMLPropertyList::iterator XMLPropertyIterator;
-typedef XMLPropertyList::const_iterator XMLPropertyConstIterator;
+typedef std::vector<XMLNode *> XMLNodeList;
+typedef std::vector<boost::shared_ptr<XMLNode> > XMLSharedNodeList;
+typedef XMLNodeList::iterator XMLNodeIterator;
+typedef XMLNodeList::const_iterator XMLNodeConstIterator;
+typedef std::vector<XMLProperty*> XMLPropertyList;
+typedef XMLPropertyList::iterator XMLPropertyIterator;
+typedef XMLPropertyList::const_iterator XMLPropertyConstIterator;
typedef std::unordered_map<std::string, XMLProperty*> XMLPropertyMap;
class LIBPBD_API XMLTree {