mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-18 20:11:15 -03:00
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:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user