From 8791859cba34a2ca01fae79b6f7677f77657b8c6 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Tue, 23 Jun 2026 17:39:19 +0200 Subject: [PATCH] Avoid doubling of the reserved size --- Common/Tools/EventSelectionModule.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Common/Tools/EventSelectionModule.h b/Common/Tools/EventSelectionModule.h index a782a5421e0..c73255aff6f 100644 --- a/Common/Tools/EventSelectionModule.h +++ b/Common/Tools/EventSelectionModule.h @@ -310,6 +310,7 @@ class BcSelectionModule return; } bcselbuffer.clear(); + bcselbuffer.reserve(bcs.size()); for (const auto& bc : bcs) { uint64_t timestamp = timestamps[bc.globalIndex()]; par = ccdb->template getForTimeStamp("EventSelection/EventSelectionParams", timestamp); @@ -453,6 +454,7 @@ class BcSelectionModule int run = bcs.iteratorAt(0).runNumber(); + bcselbuffer.reserve(bcs.size()); // bc loop for (auto bc : bcs) { // o2-linter: disable=const-ref-in-for-loop (use bc as nonconst iterator) uint64_t timestamp = timestamps[bc.globalIndex()];