We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f1cb0a commit 1f6ddb7Copy full SHA for 1f6ddb7
include/react/common/Timing.h
@@ -189,7 +189,11 @@ class ConditionalTimer<threshold,true>
189
private:
190
// Only measure once
191
bool shouldMeasure_ = true;
192
- bool isThresholdExceeded_ = false;
+
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;
197
};
198
199
/****************************************/ REACT_IMPL_END /***************************************/
0 commit comments