Skip to content

Commit

Permalink
remove feature flag enableEarlyScheduledMountItemExecution (#41146)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #41146

changelog: [internal]

Remove old feature flag

Reviewed By: rshest

Differential Revision: D50537414

fbshipit-source-id: 93aa254ac285b8e03edfec1bec1238a220b9fdcf
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Oct 23, 2023
1 parent 6aae713 commit f45b540
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ public class ReactFeatureFlags {
*/
public static boolean enableRemoveDeleteTreeInstruction = false;

/** Temporary flag to allow execution of mount items up to 15ms earlier than normal. */
public static boolean enableEarlyScheduledMountItemExecution = false;

/**
* Allow closing the small gap that appears between paths when drawing a rounded View with a
* border.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,20 +799,6 @@ public void runGuarded() {
};
if (UiThreadUtil.isOnUiThread()) {
runnable.run();
} else {
// The Choreographer will dispatch any mount items,
// but it only gets called at the /beginning/ of the
// frame - it has no idea if, or when, there is actually work scheduled. That means if we
// have a big chunk of work
// scheduled but the scheduling happens 1ms after the
// start of a UI frame, we'll miss out on 15ms of time
// to perform the work (assuming a 16ms frame).
// The DispatchUIFrameCallback still has value because of
// the PreMountItems that we need to process at a lower
// priority.
if (ReactFeatureFlags.enableEarlyScheduledMountItemExecution) {
UiThreadUtil.runOnUiThread(runnable);
}
}
}

Expand Down

0 comments on commit f45b540

Please sign in to comment.