diff options
author | 2023-07-18 01:03:09 +0200 | |
---|---|---|
committer | 2023-07-17 16:03:09 -0700 | |
commit | ead89d6b402d9323390f25a44f0bf100bba4083c (patch) | |
tree | 4d4b602aa8d87b25b418a4e4908d45d1acf58d05 /Source/ablastr/utils/msg_logger/MsgLogger.cpp | |
parent | f5917bf5dd42db01eb4aabf3459852b7bf1627a6 (diff) | |
download | WarpX-ead89d6b402d9323390f25a44f0bf100bba4083c.tar.gz WarpX-ead89d6b402d9323390f25a44f0bf100bba4083c.tar.zst WarpX-ead89d6b402d9323390f25a44f0bf100bba4083c.zip |
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
Diffstat (limited to '')
-rw-r--r-- | Source/ablastr/utils/msg_logger/MsgLogger.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<MsgWithCounterAndRanks> 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( |