Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flags] Clean up scheduler flags #31814

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

rickhanlonii
Copy link
Member

These flags are hardcoded now, we can make them static.

Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 3:39am

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Dec 17, 2024
export const enableProfiling = __DEV__;
export const frameYieldMs = 10;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@noahlemen remind me, did we decide if 10ms was going to be the default everywhere?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking back at prior discussions, yes, it doesn't seem like there was any suggestion to change it, just possible followups regarding requestPaint

@react-sizebot
Copy link

Comparing: 8a7b306...bc88dcd

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 510.76 kB 510.76 kB = 91.36 kB 91.36 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 515.55 kB 515.55 kB = 92.17 kB 92.17 kB
facebook-www/ReactDOM-prod.classic.js = 592.44 kB 592.44 kB = 104.43 kB 104.43 kB
facebook-www/ReactDOM-prod.modern.js = 582.70 kB 582.70 kB = 102.88 kB 102.87 kB
facebook-www/Scheduler-dev.classic.js = 16.66 kB 16.12 kB = 3.53 kB 3.44 kB
facebook-www/Scheduler-dev.modern.js = 16.66 kB 16.12 kB = 3.53 kB 3.44 kB
facebook-www/Scheduler-profiling.classic.js = 11.51 kB 11.05 kB = 2.81 kB 2.73 kB
facebook-www/Scheduler-profiling.modern.js = 11.51 kB 11.05 kB = 2.81 kB 2.73 kB
facebook-www/Scheduler-prod.classic.js = 11.07 kB 10.62 kB = 2.71 kB 2.63 kB
facebook-www/Scheduler-prod.modern.js = 11.07 kB 10.62 kB = 2.71 kB 2.63 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/SchedulerMock-dev.classic.js = 17.59 kB 17.42 kB = 3.69 kB 3.65 kB
facebook-www/SchedulerMock-dev.modern.js = 17.59 kB 17.42 kB = 3.69 kB 3.65 kB
facebook-www/SchedulerMock-prod.classic.js = 12.48 kB 12.35 kB = 2.93 kB 2.91 kB
facebook-www/SchedulerMock-prod.modern.js = 12.48 kB 12.35 kB = 2.93 kB 2.91 kB
facebook-www/Scheduler-dev.classic.js = 16.66 kB 16.12 kB = 3.53 kB 3.44 kB
facebook-www/Scheduler-dev.modern.js = 16.66 kB 16.12 kB = 3.53 kB 3.44 kB
facebook-www/Scheduler-profiling.classic.js = 11.51 kB 11.05 kB = 2.81 kB 2.73 kB
facebook-www/Scheduler-profiling.modern.js = 11.51 kB 11.05 kB = 2.81 kB 2.73 kB
facebook-www/Scheduler-prod.classic.js = 11.07 kB 10.62 kB = 2.71 kB 2.63 kB
facebook-www/Scheduler-prod.modern.js = 11.07 kB 10.62 kB = 2.71 kB 2.63 kB

Generated by 🚫 dangerJS against e9db8fd

export const enableProfiling = __DEV__;
export const frameYieldMs = 10;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking back at prior discussions, yes, it doesn't seem like there was any suggestion to change it, just possible followups regarding requestPaint

@rickhanlonii rickhanlonii merged commit d428725 into facebook:main Dec 17, 2024
187 checks passed
@rickhanlonii rickhanlonii deleted the rh/ff-scheduler branch December 17, 2024 15:28
github-actions bot pushed a commit that referenced this pull request Dec 17, 2024
These flags are hardcoded now, we can make them static.

DiffTrain build for [d428725](d428725)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Dec 17, 2024
These flags are hardcoded now, we can make them static.

DiffTrain build for [d428725](facebook@d428725)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Dec 17, 2024
These flags are hardcoded now, we can make them static.

DiffTrain build for [d428725](facebook@d428725)
github-actions bot pushed a commit to AreaLayer/react that referenced this pull request Dec 17, 2024
These flags are hardcoded now, we can make them static.

DiffTrain build for [d428725](facebook@d428725)
github-actions bot pushed a commit to AreaLayer/react that referenced this pull request Dec 17, 2024
These flags are hardcoded now, we can make them static.

DiffTrain build for [d428725](facebook@d428725)
davesnx added a commit to davesnx/react that referenced this pull request Dec 18, 2024
…act into issue-31578-setter-arity-gcc

* 'issue-31578-setter-arity-gcc' of github.com:/davesnx/react:
  [flags] Clean up scheduler flags (facebook#31814)
  Enable debugRenderPhaseSideEffectsForStrictMode in test renderers (facebook#31761)
  Enable disableDefaultPropsExceptForClasses (facebook#31804)
  Turn on useModernStrictMode in test renderers (facebook#31769)
  [compiler][ez] Add shape for global Object.keys (facebook#31583)
  [compiler] Context variables as dependencies (facebook#31582)
  [compiler] Add fire to known React APIs (facebook#31795)
  [compiler] Add option for firing effect functions (facebook#31794)
  [compiler][be] Logger based debug printing in test runner (facebook#31809)
  [compiler][ez] Clean up duplicate code in propagateScopeDeps (facebook#31581)
  [compiler] Repro for aliased captures within inner function expressions (facebook#31770)
  [compiler][be] Playground now compiles entire program (facebook#31774)
  [Flight] Color and badge non-primary environments (facebook#31738)
  [Flight] Emit Deduped Server Components Marker (facebook#31737)
  [Flight] Sort Server Components Track Group ahead of Client Scheduler/Components Tracks (facebook#31736)
  Clean up context access profiling experiment (facebook#31806)
  [Flight] Stack Parallel Components in Separate Tracks (facebook#31735)
  Flag for requestPaint (facebook#31805)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants