aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2016-10-06 08:48:20 +0200
committersfan5 <sfan5@live.de>2016-10-06 12:33:35 +0200
commit667975fe3adee935a3f4d2b1a421a295771c664d (patch)
tree9cbc5505b0aa528eabe103e49cbe0ff205f87527 /src/util
parent997fc59c7e29a4d2b3f19df9972f3a7d4ac894e3 (diff)
downloadminetest-667975fe3adee935a3f4d2b1a421a295771c664d.tar.gz
minetest-667975fe3adee935a3f4d2b1a421a295771c664d.tar.bz2
minetest-667975fe3adee935a3f4d2b1a421a295771c664d.zip
Use more unordered_maps to improve performance in c++11 builds
Diffstat (limited to 'src/util')
-rw-r--r--src/util/string.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/string.h b/src/util/string.h
index 724543a36..572c37150 100644
--- a/src/util/string.h
+++ b/src/util/string.h
@@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define UTIL_STRING_HEADER
#include "irrlichttypes_bloated.h"
+#include "cpp11_container.h"
#include <stdlib.h>
#include <string>
#include <cstring>
@@ -54,7 +55,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
(((unsigned char)(x) < 0xe0) ? 2 : \
(((unsigned char)(x) < 0xf0) ? 3 : 4))
-typedef std::map<std::string, std::string> StringMap;
+typedef UNORDERED_MAP<std::string, std::string> StringMap;
struct FlagDesc {
const char *name;