Skip to content

Commit 1f6ddb7

Browse files
committed
Fixed #9
1 parent 2f1cb0a commit 1f6ddb7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/react/common/Timing.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,11 @@ class ConditionalTimer<threshold,true>
189189
private:
190190
// Only measure once
191191
bool shouldMeasure_ = true;
192-
bool isThresholdExceeded_ = false;
192+
193+
// Until we have measured, assume the threshold is exceeded.
194+
// The cost of initially not parallelizing what should be parallelized is much higher
195+
// than for the other way around.
196+
bool isThresholdExceeded_ = true;
193197
};
194198

195199
/****************************************/ REACT_IMPL_END /***************************************/

0 commit comments

Comments
 (0)