From 082397ef80ce4708a51b61897234d69329004f42 Mon Sep 17 00:00:00 2001 From: Joris van Rantwijk Date: Tue, 19 Nov 2024 21:25:05 +0100 Subject: [PATCH] Minor cleanup --- cpp/mwmatching.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/mwmatching.h b/cpp/mwmatching.h index a98bc7f..9fffe4a 100644 --- a/cpp/mwmatching.h +++ b/cpp/mwmatching.h @@ -1231,7 +1231,7 @@ public: assert(path.edges.size() % 2 == 1); assert(path.edges.size() >= 3); - // Construct the list of sub-blossoms. + // Collect pointers to sub-blossoms. std::vector subblossoms; subblossoms.reserve(path.edges.size()); for (VertexPair edge : path.edges) { @@ -1277,8 +1277,8 @@ public: } // Merge concatenable queues. -// TODO -- avoid temporary array std::vector subqueues; + subqueues.reserve(subblossoms.size()); for (BlossomT* sub : subblossoms) { subqueues.push_back(&sub->vertex_queue); }