Skip to content

Commit f45b540

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
remove feature flag enableEarlyScheduledMountItemExecution (#41146)
Summary: Pull Request resolved: #41146 changelog: [internal] Remove old feature flag Reviewed By: rshest Differential Revision: D50537414 fbshipit-source-id: 93aa254ac285b8e03edfec1bec1238a220b9fdcf
1 parent 6aae713 commit f45b540

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ public class ReactFeatureFlags {
112112
*/
113113
public static boolean enableRemoveDeleteTreeInstruction = false;
114114

115-
/** Temporary flag to allow execution of mount items up to 15ms earlier than normal. */
116-
public static boolean enableEarlyScheduledMountItemExecution = false;
117-
118115
/**
119116
* Allow closing the small gap that appears between paths when drawing a rounded View with a
120117
* border.

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -799,20 +799,6 @@ public void runGuarded() {
799799
};
800800
if (UiThreadUtil.isOnUiThread()) {
801801
runnable.run();
802-
} else {
803-
// The Choreographer will dispatch any mount items,
804-
// but it only gets called at the /beginning/ of the
805-
// frame - it has no idea if, or when, there is actually work scheduled. That means if we
806-
// have a big chunk of work
807-
// scheduled but the scheduling happens 1ms after the
808-
// start of a UI frame, we'll miss out on 15ms of time
809-
// to perform the work (assuming a 16ms frame).
810-
// The DispatchUIFrameCallback still has value because of
811-
// the PreMountItems that we need to process at a lower
812-
// priority.
813-
if (ReactFeatureFlags.enableEarlyScheduledMountItemExecution) {
814-
UiThreadUtil.runOnUiThread(runnable);
815-
}
816802
}
817803
}
818804

0 commit comments

Comments
 (0)