From bbf0f03bcd05fbc8fa9294e911ca90f540b719aa Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Thu, 3 Nov 2022 12:24:28 +0100 Subject: [PATCH 1/2] Avoid copy This triggers some of the copies / deletions which you see. --- Framework/src/RootFileSource.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Framework/src/RootFileSource.cxx b/Framework/src/RootFileSource.cxx index efac4d4963..c6c742ea62 100644 --- a/Framework/src/RootFileSource.cxx +++ b/Framework/src/RootFileSource.cxx @@ -38,7 +38,7 @@ void RootFileSource::init(framework::InitContext&) void RootFileSource::run(framework::ProcessingContext& ctx) { - auto deviceSpec = ctx.services().get(); + auto const &deviceSpec = ctx.services().get(); std::vector allowedOutputs; for (const auto& outputRoute : deviceSpec.outputs) { allowedOutputs.push_back(outputRoute.matcher.binding); From 9c06beaf43fa550122e02ba76b66b47c683e12c2 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Thu, 3 Nov 2022 12:32:55 +0100 Subject: [PATCH 2/2] Update RootFileSource.cxx --- Framework/src/RootFileSource.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Framework/src/RootFileSource.cxx b/Framework/src/RootFileSource.cxx index c6c742ea62..13e7ed5e70 100644 --- a/Framework/src/RootFileSource.cxx +++ b/Framework/src/RootFileSource.cxx @@ -38,7 +38,7 @@ void RootFileSource::init(framework::InitContext&) void RootFileSource::run(framework::ProcessingContext& ctx) { - auto const &deviceSpec = ctx.services().get(); + auto const& deviceSpec = ctx.services().get(); std::vector allowedOutputs; for (const auto& outputRoute : deviceSpec.outputs) { allowedOutputs.push_back(outputRoute.matcher.binding);