From ead89d6b402d9323390f25a44f0bf100bba4083c Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 18 Jul 2023 01:03:09 +0200 Subject: Clang-tidy CI test: add some performance checks in clang-tidy CI test (#4077) * add some performance checks in clang-tidy CI test * fix few smalle performance issues found with clang-tidy * fix bug * fixed bug * fixed performance issue --- Source/ablastr/utils/msg_logger/MsgLogger.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/ablastr/utils/msg_logger/MsgLogger.cpp') diff --git a/Source/ablastr/utils/msg_logger/MsgLogger.cpp b/Source/ablastr/utils/msg_logger/MsgLogger.cpp index 80787adc5..6b141c33b 100644 --- a/Source/ablastr/utils/msg_logger/MsgLogger.cpp +++ b/Source/ablastr/utils/msg_logger/MsgLogger.cpp @@ -353,6 +353,7 @@ Logger::compute_msgs_with_counter_and_ranks( std::vector msgs_with_counter_and_ranks; // Put messages of the gather rank in msgs_with_counter_and_ranks + msgs_with_counter_and_ranks.reserve(my_msg_map.size()); for (const auto& el : my_msg_map) { msgs_with_counter_and_ranks.emplace_back( -- cgit v1.2.3