diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-03-23 15:53:54 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-03-27 01:39:51 +0100 |
commit | c46e36b073678ea410ecc649f34c5346a9eb735a (patch) | |
tree | bfdcf857c33e4ddf4b78d18a7d5e4af03b4d246d /src/env.h | |
parent | d111d7b91c16ec420f231da4f6877a9b446de6d8 (diff) | |
download | android-node-v8-c46e36b073678ea410ecc649f34c5346a9eb735a.tar.gz android-node-v8-c46e36b073678ea410ecc649f34c5346a9eb735a.tar.bz2 android-node-v8-c46e36b073678ea410ecc649f34c5346a9eb735a.zip |
src: use `unordered_map` for perf marks
PR-URL: https://github.com/nodejs/node/pull/19558
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -38,7 +38,6 @@ #include "node_http2_state.h" #include <list> -#include <map> #include <stdint.h> #include <vector> #include <unordered_map> @@ -646,7 +645,7 @@ class Environment { file_handle_read_wrap_freelist(); inline performance::performance_state* performance_state(); - inline std::map<std::string, uint64_t>* performance_marks(); + inline std::unordered_map<std::string, uint64_t>* performance_marks(); void CollectExceptionInfo(v8::Local<v8::Value> context, int errorno, @@ -795,7 +794,7 @@ class Environment { int should_not_abort_scope_counter_ = 0; std::unique_ptr<performance::performance_state> performance_state_; - std::map<std::string, uint64_t> performance_marks_; + std::unordered_map<std::string, uint64_t> performance_marks_; #if HAVE_INSPECTOR std::unique_ptr<inspector::Agent> inspector_agent_; |