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
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user