From 124492769ee0d87620fc425c64e2b1d5dc66ac77 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Fri, 23 Mar 2018 15:53:54 +0100 Subject: [PATCH] src: use `unordered_map` for perf marks --- src/env-inl.h | 3 ++- src/env.h | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/env-inl.h b/src/env-inl.h index bc800f6d5c9642..96e88b5c116adb 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -531,7 +531,8 @@ inline performance::performance_state* Environment::performance_state() { return performance_state_.get(); } -inline std::map* Environment::performance_marks() { +inline std::unordered_map* + Environment::performance_marks() { return &performance_marks_; } diff --git a/src/env.h b/src/env.h index 8ef4e187b525d8..8252ef290ebb6f 100644 --- a/src/env.h +++ b/src/env.h @@ -39,7 +39,6 @@ #include "node_http2_state.h" #include -#include #include #include #include @@ -647,7 +646,7 @@ class Environment { file_handle_read_wrap_freelist(); inline performance::performance_state* performance_state(); - inline std::map* performance_marks(); + inline std::unordered_map* performance_marks(); void CollectExceptionInfo(v8::Local context, int errorno, @@ -796,7 +795,7 @@ class Environment { int should_not_abort_scope_counter_ = 0; std::unique_ptr performance_state_; - std::map performance_marks_; + std::unordered_map performance_marks_; #if HAVE_INSPECTOR std::unique_ptr inspector_agent_;