summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2016-10-05 00:13:10 +0200
committerNer'zhul <nerzhul@users.noreply.github.com>2016-10-05 07:30:32 +0200
commit5f084cd98d7b3326b51320455364337539710efd (patch)
treed66681421b1b1dfa18d1feb3f0a66d5c03e00c86 /src/settings.h
parentd4c76258e37337ea585cf24d8e05b50a30fa307d (diff)
downloadminetest-5f084cd98d7b3326b51320455364337539710efd.tar.gz
minetest-5f084cd98d7b3326b51320455364337539710efd.tar.bz2
minetest-5f084cd98d7b3326b51320455364337539710efd.zip
Make some maps unordered to improve performance
* This permit to improve performance on C++11 builds * use some existing typedefs in tools maps * minor code style changes
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings.h b/src/settings.h
index 0af861a58..c6c044779 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "util/string.h"
#include "threading/mutex.h"
#include <string>
-#include <map>
+#include "util/cpp11_container.h"
#include <list>
#include <set>
@@ -45,7 +45,7 @@ typedef std::vector<
>
> SettingsCallbackList;
-typedef std::map<std::string, SettingsCallbackList> SettingsCallbackMap;
+typedef UNORDERED_MAP<std::string, SettingsCallbackList> SettingsCallbackMap;
enum ValueType {
VALUETYPE_STRING,