Skip to content

Commit b8a98ad

Browse files
committed
[Fiber] Don't call performance.now() twice in a row (#30936)
DiffTrain build for [a5a7f10](a5a7f10)
1 parent bf9385a commit b8a98ad

34 files changed

+98
-98
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
66cf2cfc8a8c4b09d2b783fd7302ae6b24150935
1+
a5a7f1063e6f190c64c779b2aa54d28fb7b92cfb
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
66cf2cfc8a8c4b09d2b783fd7302ae6b24150935
1+
a5a7f1063e6f190c64c779b2aa54d28fb7b92cfb

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ __DEV__ &&
20012001
exports.useTransition = function () {
20022002
return resolveDispatcher().useTransition();
20032003
};
2004-
exports.version = "19.0.0-www-classic-66cf2cfc-20240910";
2004+
exports.version = "19.0.0-www-classic-a5a7f106-20240910";
20052005
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
20062006
"function" ===
20072007
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1981,7 +1981,7 @@ __DEV__ &&
19811981
exports.useTransition = function () {
19821982
return resolveDispatcher().useTransition();
19831983
};
1984-
exports.version = "19.0.0-www-modern-66cf2cfc-20240910";
1984+
exports.version = "19.0.0-www-modern-a5a7f106-20240910";
19851985
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19861986
"function" ===
19871987
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
665665
exports.useTransition = function () {
666666
return ReactSharedInternals.H.useTransition();
667667
};
668-
exports.version = "19.0.0-www-classic-66cf2cfc-20240910";
668+
exports.version = "19.0.0-www-classic-a5a7f106-20240910";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
665665
exports.useTransition = function () {
666666
return ReactSharedInternals.H.useTransition();
667667
};
668-
exports.version = "19.0.0-www-modern-66cf2cfc-20240910";
668+
exports.version = "19.0.0-www-modern-a5a7f106-20240910";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
669669
exports.useTransition = function () {
670670
return ReactSharedInternals.H.useTransition();
671671
};
672-
exports.version = "19.0.0-www-classic-66cf2cfc-20240910";
672+
exports.version = "19.0.0-www-classic-a5a7f106-20240910";
673673
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
674674
"function" ===
675675
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
669669
exports.useTransition = function () {
670670
return ReactSharedInternals.H.useTransition();
671671
};
672-
exports.version = "19.0.0-www-modern-66cf2cfc-20240910";
672+
exports.version = "19.0.0-www-modern-a5a7f106-20240910";
673673
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
674674
"function" ===
675675
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5417,7 +5417,7 @@ __DEV__ &&
54175417
}
54185418
function startProfilerTimer(fiber) {
54195419
profilerStartTime = now();
5420-
0 > fiber.actualStartTime && (fiber.actualStartTime = now());
5420+
0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
54215421
}
54225422
function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
54235423
if (0 <= profilerStartTime) {
@@ -16967,11 +16967,11 @@ __DEV__ &&
1696716967
(function () {
1696816968
var internals = {
1696916969
bundleType: 1,
16970-
version: "19.0.0-www-classic-66cf2cfc-20240910",
16970+
version: "19.0.0-www-classic-a5a7f106-20240910",
1697116971
rendererPackageName: "react-art",
1697216972
currentDispatcherRef: ReactSharedInternals,
1697316973
findFiberByHostInstance: getInstanceFromNode,
16974-
reconcilerVersion: "19.0.0-www-classic-66cf2cfc-20240910"
16974+
reconcilerVersion: "19.0.0-www-classic-a5a7f106-20240910"
1697516975
};
1697616976
internals.overrideHookState = overrideHookState;
1697716977
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -17005,7 +17005,7 @@ __DEV__ &&
1700517005
exports.Shape = Shape;
1700617006
exports.Surface = Surface;
1700717007
exports.Text = Text;
17008-
exports.version = "19.0.0-www-classic-66cf2cfc-20240910";
17008+
exports.version = "19.0.0-www-classic-a5a7f106-20240910";
1700917009
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1701017010
"function" ===
1701117011
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5293,7 +5293,7 @@ __DEV__ &&
52935293
}
52945294
function startProfilerTimer(fiber) {
52955295
profilerStartTime = now();
5296-
0 > fiber.actualStartTime && (fiber.actualStartTime = now());
5296+
0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
52975297
}
52985298
function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
52995299
if (0 <= profilerStartTime) {
@@ -16413,11 +16413,11 @@ __DEV__ &&
1641316413
(function () {
1641416414
var internals = {
1641516415
bundleType: 1,
16416-
version: "19.0.0-www-modern-66cf2cfc-20240910",
16416+
version: "19.0.0-www-modern-a5a7f106-20240910",
1641716417
rendererPackageName: "react-art",
1641816418
currentDispatcherRef: ReactSharedInternals,
1641916419
findFiberByHostInstance: getInstanceFromNode,
16420-
reconcilerVersion: "19.0.0-www-modern-66cf2cfc-20240910"
16420+
reconcilerVersion: "19.0.0-www-modern-a5a7f106-20240910"
1642116421
};
1642216422
internals.overrideHookState = overrideHookState;
1642316423
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -16451,7 +16451,7 @@ __DEV__ &&
1645116451
exports.Shape = Shape;
1645216452
exports.Surface = Surface;
1645316453
exports.Text = Text;
16454-
exports.version = "19.0.0-www-modern-66cf2cfc-20240910";
16454+
exports.version = "19.0.0-www-modern-a5a7f106-20240910";
1645516455
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1645616456
"function" ===
1645716457
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)