mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Use more unordered_maps to improve performance in c++11 builds
This commit is contained in:
parent
997fc59c7e
commit
667975fe3a
9 changed files with 22 additions and 27 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue