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

Clean up context access profiling experiment #31806

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

jackpope
Copy link
Contributor

We introduced the unstable_useContextWithBailout API to run compiler based experiments. This API was designed to be an experiment proxy for alternative approaches which would be heavier to implement. The experiment turned out to be inconclusive. Since most of our performance critical usage is already optimized, we weren't able to find a clear win with this approach.

Since we don't have further plans for this API, let's clean it up.

Copy link

vercel bot commented Dec 16, 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 16, 2024 5:19pm

@react-sizebot
Copy link

Comparing: 031230d...fdb1c27

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 +0.05% 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 = 594.69 kB 592.44 kB = 104.93 kB 104.43 kB
facebook-www/ReactDOM-prod.modern.js = 584.96 kB 582.70 kB = 103.37 kB 102.88 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/ReactDOM-profiling.classic.js = 621.85 kB 619.60 kB = 108.80 kB 108.32 kB
facebook-www/ReactDOM-profiling.modern.js = 612.07 kB 609.81 kB = 107.20 kB 106.72 kB
facebook-www/ReactDOMTesting-prod.classic.js = 609.41 kB 607.16 kB = 108.60 kB 108.10 kB
facebook-www/ReactDOMTesting-prod.modern.js = 599.68 kB 597.42 kB = 107.05 kB 106.57 kB
facebook-www/ReactDOM-prod.classic.js = 594.69 kB 592.44 kB = 104.93 kB 104.43 kB
facebook-www/ReactDOM-prod.modern.js = 584.96 kB 582.70 kB = 103.37 kB 102.88 kB
facebook-www/ReactDOMTesting-dev.classic.js = 1,089.20 kB 1,084.75 kB = 183.05 kB 182.36 kB
facebook-www/ReactDOMTesting-dev.modern.js = 1,079.75 kB 1,075.29 kB = 181.28 kB 180.58 kB
facebook-www/ReactDOM-dev.classic.js = 1,072.29 kB 1,067.84 kB = 179.11 kB 178.41 kB
facebook-www/ReactDOM-dev.modern.js = 1,062.84 kB 1,058.39 kB = 177.34 kB 176.67 kB
facebook-react-native/react/cjs/React-profiling.js = 19.62 kB 19.53 kB = 5.06 kB 5.04 kB
facebook-react-native/react/cjs/React-prod.js = 19.19 kB 19.09 kB = 4.98 kB 4.96 kB
facebook-www/ReactReconciler-prod.classic.js = 460.14 kB 457.56 kB = 74.13 kB 73.63 kB
facebook-www/ReactReconciler-prod.modern.js = 449.82 kB 447.24 kB = 72.59 kB 72.09 kB
facebook-www/React-dev.classic.js = 70.78 kB 70.36 kB = 15.38 kB 15.34 kB
facebook-www/React-dev.modern.js = 70.78 kB 70.36 kB = 15.38 kB 15.34 kB
facebook-www/ReactART-prod.classic.js = 367.11 kB 364.85 kB = 61.72 kB 61.32 kB
facebook-www/ReactART-prod.modern.js = 357.39 kB 355.13 kB = 60.22 kB 59.78 kB
facebook-www/ReactReconciler-dev.classic.js = 737.84 kB 733.16 kB = 116.59 kB 115.85 kB
facebook-www/ReactReconciler-dev.modern.js = 728.32 kB 723.64 kB = 114.80 kB 114.08 kB
facebook-www/ReactART-dev.classic.js = 652.69 kB 648.23 kB = 104.00 kB 103.32 kB
facebook-www/ReactART-dev.modern.js = 642.80 kB 638.35 kB = 102.00 kB 101.33 kB
facebook-www/React-profiling.classic.js = 21.20 kB 21.04 kB = 5.39 kB 5.36 kB
facebook-www/React-profiling.modern.js = 21.19 kB 21.04 kB = 5.39 kB 5.36 kB
facebook-www/React-prod.classic.js = 20.76 kB 20.61 kB = 5.30 kB 5.27 kB
facebook-www/React-prod.modern.js = 20.76 kB 20.61 kB = 5.30 kB 5.27 kB
oss-experimental/react-debug-tools/cjs/react-debug-tools.production.js = 28.34 kB 27.79 kB = 5.59 kB 5.54 kB
oss-stable-semver/react-debug-tools/cjs/react-debug-tools.production.js = 28.34 kB 27.79 kB = 5.59 kB 5.54 kB
oss-stable/react-debug-tools/cjs/react-debug-tools.production.js = 28.34 kB 27.79 kB = 5.59 kB 5.54 kB
oss-experimental/react-debug-tools/cjs/react-debug-tools.development.js = 31.81 kB 31.18 kB = 5.73 kB 5.67 kB
oss-stable-semver/react-debug-tools/cjs/react-debug-tools.development.js = 31.81 kB 31.18 kB = 5.73 kB 5.67 kB
oss-stable/react-debug-tools/cjs/react-debug-tools.development.js = 31.81 kB 31.18 kB = 5.73 kB 5.67 kB

Generated by 🚫 dangerJS against 1471fa0

@jackpope jackpope merged commit 909ed63 into facebook:main Dec 16, 2024
187 checks passed
@jackpope jackpope deleted the revert-profile-context-access branch December 16, 2024 17:32
github-actions bot pushed a commit that referenced this pull request Dec 16, 2024
We introduced the `unstable_useContextWithBailout` API to run compiler
based experiments. This API was designed to be an experiment proxy for
alternative approaches which would be heavier to implement. The
experiment turned out to be inconclusive. Since most of our performance
critical usage is already optimized, we weren't able to find a clear win
with this approach.

Since we don't have further plans for this API, let's clean it up.

DiffTrain build for [909ed63](909ed63)
github-actions bot pushed a commit that referenced this pull request Dec 16, 2024
We introduced the `unstable_useContextWithBailout` API to run compiler
based experiments. This API was designed to be an experiment proxy for
alternative approaches which would be heavier to implement. The
experiment turned out to be inconclusive. Since most of our performance
critical usage is already optimized, we weren't able to find a clear win
with this approach.

Since we don't have further plans for this API, let's clean it up.

DiffTrain build for [909ed63](909ed63)
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