Switch from std::map<> to std::unordered_map<> where possible

Didn't switch env_var_t map because it seems to be mostly iterated in
order, but that decision may be revisited at a later date.
This commit is contained in:
Mahmoud Al-Qudsi
2017-08-19 11:55:06 -05:00
parent 0dce9a2114
commit 61b4900a70
12 changed files with 45 additions and 28 deletions

View File

@@ -14,6 +14,7 @@
#include <memory>
#include <set>
#include <string>
#include <unordered_map>
#include <utility>
#include "autoload.h"
@@ -28,7 +29,7 @@
#include "wutil.h" // IWYU pragma: keep
/// Table containing all functions.
typedef std::map<wcstring, function_info_t> function_map_t;
typedef std::unordered_map<wcstring, function_info_t> function_map_t;
static function_map_t loaded_functions;
/// Functions that shouldn't be autoloaded (anymore).