From 400c4034205fc0f89edbbd611c2c088a502a3761 Mon Sep 17 00:00:00 2001 From: Shamser Ahmed Date: Fri, 20 Dec 2024 13:52:19 +0000 Subject: [PATCH] HPCC-31003 Move instead of copying objects to improve performance Signed-off-by: Shamser Ahmed --- common/workunit/workunit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/workunit/workunit.cpp b/common/workunit/workunit.cpp index 8e42207db59..112caeb9a7e 100644 --- a/common/workunit/workunit.cpp +++ b/common/workunit/workunit.cpp @@ -2708,7 +2708,7 @@ void StatisticsAggregator::recordStats(IStatisticCollection * sourceStats, unsig verifyex(graphScopeId.setScopeText(graphName)); StatsScopeId wfScopeId(SSTworkflow, wfid); StatsScopeId sgScopeId(SSTsubgraph, sgId); - statsCollection->recordStats(mapping, sourceStats, {wfScopeId, graphScopeId, sgScopeId}); + statsCollection->recordStats(mapping, sourceStats, {std::move(wfScopeId), std::move(graphScopeId), std::move(sgScopeId)}); } // Recalculate aggregates and then write the aggregates to global stats (dali)