diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-08 20:32:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-08 20:32:49 +0200 |
commit | d1dcedaccfd5adfd661724476003410d5d251756 (patch) | |
tree | 076b2626cd294e8eaf8bdd1bc87e167b41edab83 /libs/pbd/pbd | |
parent | 6dd5d6df71acc5eacab5ef2e1b500b123ede4254 (diff) |
experimental session-save speedup
property order is not important,
unordered_map lookup and insertion is O(1)
Diffstat (limited to 'libs/pbd/pbd')
-rw-r--r-- | libs/pbd/pbd/xml++.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/pbd/pbd/xml++.h b/libs/pbd/pbd/xml++.h index 8e0e015870..7b8649873a 100644 --- a/libs/pbd/pbd/xml++.h +++ b/libs/pbd/pbd/xml++.h @@ -29,7 +29,7 @@ #include <string> #include <list> -#include <map> +#include <unordered_map> #include <cstdio> #include <cstdarg> @@ -50,7 +50,7 @@ typedef XMLNodeList::const_iterator XMLNodeConstIterator; typedef std::list<XMLProperty*> XMLPropertyList; typedef XMLPropertyList::iterator XMLPropertyIterator; typedef XMLPropertyList::const_iterator XMLPropertyConstIterator; -typedef std::map<std::string, XMLProperty*> XMLPropertyMap; +typedef std::unordered_map<std::string, XMLProperty*> XMLPropertyMap; class LIBPBD_API XMLTree { public: |