From 37359c5f2aa871e2ae7be75e7820bc204777a41d Mon Sep 17 00:00:00 2001 From: Colin LeMahieu Date: Wed, 30 Aug 2023 17:45:33 +0100 Subject: [PATCH] Changing use of map to unordered_map since we don't need ordering and it was impacting performance. --- nano/lib/stats.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nano/lib/stats.hpp b/nano/lib/stats.hpp index 324bdfe8..e6446580 100644 --- a/nano/lib/stats.hpp +++ b/nano/lib/stats.hpp @@ -9,10 +9,10 @@ #include #include -#include #include #include #include +#include namespace nano { @@ -440,7 +440,7 @@ private: nano::stats_config config; /** Stat entries are sorted by key to simplify processing of log output */ - std::map> entries; + std::unordered_map> entries; std::chrono::steady_clock::time_point log_last_count_writeout{ std::chrono::steady_clock::now () }; std::chrono::steady_clock::time_point log_last_sample_writeout{ std::chrono::steady_clock::now () };