Skip to content

Commit

Permalink
HPCC-32933 Only count the first iteration time input processing for t…
Browse files Browse the repository at this point in the history
…he purposes of lookahead

Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed Nov 13, 2024
1 parent 07fe69e commit b687edd
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions thorlcr/activities/loop/thloopslave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,27 @@ class CLoopSlaveActivity : public CLoopSlaveActivityBase
{
OwnedConstThorRow ret;
{
LookAheadTimer t(slaveTimerStats, timeActivities);
ret.setown(curInput->nextRow());
if (!ret)
if (loopCounter==1)
{
ret.setown(curInput->nextRow()); // more cope with groups somehow....
// the time used in first iteration is lookahead time
LookAheadTimer t(slaveTimerStats, timeActivities);
ret.setown(curInput->nextRow());
if (!ret)
break;
{
ret.setown(curInput->nextRow()); // more cope with groups somehow....
if (!ret)
break;
}
}
else
{
ret.setown(curInput->nextRow());
if (!ret)
{
ret.setown(curInput->nextRow()); // more cope with groups somehow....
if (!ret)
break;
}
}
}

Expand Down

0 comments on commit b687edd

Please sign in to comment.