Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: tools/ipc_fuzzer/message_lib/message_names.h

Issue 2214713003: Make message_names.cc build 10-30x faster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/message_lib/message_names.h
diff --git a/tools/ipc_fuzzer/message_lib/message_names.h b/tools/ipc_fuzzer/message_lib/message_names.h
index 5a9e4427d5e7b585e98bc52cd3da0838ecaaa427..8b412d0081b64e33cfa92ce8f92d4df65da62783 100644
--- a/tools/ipc_fuzzer/message_lib/message_names.h
+++ b/tools/ipc_fuzzer/message_lib/message_names.h
@@ -7,8 +7,8 @@
#include <stdint.h>
-#include <map>
#include <string>
+#include <unordered_map>
#include "base/logging.h"
#include "base/macros.h"
@@ -46,8 +46,8 @@ class MessageNames {
}
private:
- typedef std::map<uint32_t, std::string> TypeToNameMap;
- typedef std::map<std::string, uint32_t> NameToTypeMap;
+ typedef std::unordered_map<uint32_t, std::string> TypeToNameMap;
+ typedef std::unordered_map<std::string, uint32_t> NameToTypeMap;
TypeToNameMap name_map_;
NameToTypeMap type_map_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698