summaryrefslogtreecommitdiff
path: root/src/clientobject.h
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/clientobject.h
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/clientobject.h')
-rw-r--r--src/clientobject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clientobject.h b/src/clientobject.h
index 3cc7c2391..c4e1a634b 100644
--- a/src/clientobject.h
+++ b/src/clientobject.h
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "irrlichttypes_extrabloated.h"
#include "activeobject.h"
#include <map>
+#include "util/cpp11_container.h"
/*
@@ -103,7 +104,7 @@ protected:
ClientEnvironment *m_env;
private:
// Used for creating objects based on type
- static std::map<u16, Factory> m_types;
+ static UNORDERED_MAP<u16, Factory> m_types;
};
struct DistanceSortedActiveObject