GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Fiber] Move runWithFiberInDEV from CommitWork to CommitEffects by sebmarkbage · Pull Request #30882 · react/react

Conversation

@sebmarkbage

@sebmarkbage sebmarkbage commented Sep 4, 2024

Copy link
Copy Markdown
Contributor

Stacked on #30881.

Move runWithFiberInDEV from the recursive part of the commit phase and instead wrap each call into user space. These should really map 1:1 with where we're using try/catch since that's where we're calling into user space.

The goal of this is to avoid the extra stack frames added by enableOwnerStacks in the recursive parts to avoid stack overflow. This way we only have a couple of extra at the end of the stack instead of a couple of extra at every depth of the tree.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sebmarkbage
sebmarkbage requested review from acdlite and hoxyq September 4, 2024 22:57
@vercel

vercel Bot commented Sep 4, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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 Sep 6, 2024 0:56am
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Sep 4, 2024
@vercel
vercel Bot deployed to Preview September 4, 2024 22:59
View deployment
@react-sizebot

react-sizebot commented Sep 4, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Comparing: a03254bc60b06c535c37e43c53b1fd40757b2ef4...4836cd50e3b1cbd6016e335a02b1ccaad0da502b

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.82 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 505.04 kB 505.04 kB = 90.26 kB 90.26 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB +0.05% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 512.23 kB 512.23 kB = 91.47 kB 91.47 kB
facebook-www/ReactDOM-prod.classic.js = 600.56 kB 600.56 kB = 106.23 kB 106.23 kB
facebook-www/ReactDOM-prod.modern.js = 576.85 kB 576.85 kB = 102.37 kB 102.37 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 731d483

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sebmarkbage
sebmarkbage force-pushed the runwithfiberrefactor branch from a66c56d to eb7d502 Compare September 4, 2024 23:21
@vercel
vercel Bot deployed to Preview September 4, 2024 23:23
View deployment
@sebmarkbage
sebmarkbage force-pushed the runwithfiberrefactor branch 2 times, most recently from 2f46509 to 17e316e Compare September 4, 2024 23:26
@vercel
vercel Bot deployed to Preview September 4, 2024 23:29
View deployment
@sebmarkbage
sebmarkbage force-pushed the runwithfiberrefactor branch from 17e316e to 87b9e14 Compare September 4, 2024 23:30
@vercel
vercel Bot deployed to Preview September 4, 2024 23:32
View deployment
@sebmarkbage
sebmarkbage force-pushed the runwithfiberrefactor branch from 87b9e14 to 8ca51d6 Compare September 4, 2024 23:33
@vercel
vercel Bot deployed to Preview September 4, 2024 23:36
View deployment
@sebmarkbage
sebmarkbage force-pushed the runwithfiberrefactor branch from 8ca51d6 to 71e5fa4 Compare September 4, 2024 23:38
@vercel
vercel Bot deployed to Preview September 4, 2024 23:40
View deployment
@sebmarkbage
sebmarkbage force-pushed the runwithfiberrefactor branch from 71e5fa4 to 2e92dc5 Compare September 5, 2024 00:07
@vercel
vercel Bot deployed to Preview September 5, 2024 00:12
View deployment
acdlite
acdlite approved these changes Sep 6, 2024
View reviewed changes
sebmarkbage added 5 commits September 5, 2024 20:54
@sebmarkbage
Remove runWithFiberInDEV branches around recursive calls
123ae6e
@sebmarkbage
Wrap CommitHostEffects in runWithFiberInDEV at the same place as try/…
daec869
…catch
@sebmarkbage
Wrap user space calls in runWithFiberInDEV
1de0845
@sebmarkbage
Wrap remaining Commit Effects in runWithFiberInDEV
d6ea028
@sebmarkbage
Wrap warnings to associate the cause
731d483
@sebmarkbage
sebmarkbage force-pushed the runwithfiberrefactor branch from 2e92dc5 to 731d483 Compare September 6, 2024 00:54
@sebmarkbage
sebmarkbage merged commit a03254b into react:main Sep 6, 2024
@vercel
vercel Bot deployed to Preview September 6, 2024 00:56
View deployment
github-actions Bot pushed a commit that referenced this pull request Sep 6, 2024
@sebmarkbage
[Fiber] Move runWithFiberInDEV from CommitWork to CommitEffects (#30882)
6f1fca9
Stacked on #30881.

Move `runWithFiberInDEV` from the recursive part of the commit phase and
instead wrap each call into user space. These should really map 1:1 with
where we're using `try/catch` since that's where we're calling into user
space.

The goal of this is to avoid the extra stack frames added by
`enableOwnerStacks` in the recursive parts to avoid stack overflow. This
way we only have a couple of extra at the end of the stack instead of a
couple of extra at every depth of the tree.

DiffTrain build for commit a03254b.
github-actions Bot pushed a commit that referenced this pull request Sep 6, 2024
@sebmarkbage
[Fiber] Move runWithFiberInDEV from CommitWork to CommitEffects (#30882)
716cd41
Stacked on #30881.

Move `runWithFiberInDEV` from the recursive part of the commit phase and
instead wrap each call into user space. These should really map 1:1 with
where we're using `try/catch` since that's where we're calling into user
space.

The goal of this is to avoid the extra stack frames added by
`enableOwnerStacks` in the recursive parts to avoid stack overflow. This
way we only have a couple of extra at the end of the stack instead of a
couple of extra at every depth of the tree.

DiffTrain build for [a03254b](a03254b)
This was referenced Sep 6, 2024
Upgrade React from 7771d3a7-20240827 to a03254bc-20240905 vercel/next.js#69794
Closed
Upgrade React from 7771d3a7-20240827 to e210d081-20240909 vercel/next.js#69885
Closed
Upgrade React from 7771d3a7-20240827 to 3dfd5d9e-20240910 vercel/next.js#69928
Closed
Upgrade React from 7771d3a7-20240827 to d6cb4e77-20240911 vercel/next.js#69980
Closed
Upgrade React from 7771d3a7-20240827 to 47352209-20240912 vercel/next.js#70035
Closed
Upgrade React from 7771d3a7-20240827 to 94e652d5-20240912 vercel/next.js#70037
Merged
gnoff pushed a commit to vercel/next.js that referenced this pull request Sep 12, 2024
@vercel-release-bot
Upgrade React from 7771d3a7-20240827 to 94e652d5-20240912 (#70037)
f2cf2e0
**breaking change for canary users: Bumps peer dependency of React from
`19.0.0-rc-7771d3a7-20240827` to `19.0.0-rc-94e652d5-20240912`**

[diff
react/react@7771d3a7...94e652d5](react/react@7771d3a...94e652d)

<details>
<summary>React upstream changes</summary>

- react/react#30952
- react/react#30950
- react/react#30946
- react/react#30934
- react/react#30947
- react/react#30945
- react/react#30938
- react/react#30936
- react/react#30879
- react/react#30888
- react/react#30931
- react/react#30930
- react/react#30832
- react/react#30929
- react/react#30926
- react/react#30925
- react/react#30905
- react/react#30900
- react/react#30910
- react/react#30906
- react/react#30899
- react/react#30919
- react/react#30708
- react/react#30907
- react/react#30897
- react/react#30896
- react/react#30895
- react/react#30887
- react/react#30889
- react/react#30893
- react/react#30892
- react/react#30891
- react/react#30882
- react/react#30881
- react/react#30870
- react/react#30849
- react/react#30878
- react/react#30865
- react/react#30869
- react/react#30875
- react/react#30800
- react/react#30762
- react/react#30831
- react/react#30866
- react/react#30853
- react/react#30850
- react/react#30847
- react/react#30842
- react/react#30837
- react/react#30848
- react/react#30844
- react/react#30839
- react/react#30802
- react/react#30841
- react/react#30827
- react/react#30826
- react/react#30825
- react/react#30824
- react/react#30840
- react/react#30838
- react/react#30836
- react/react#30819
- react/react#30816
- react/react#30814
- react/react#30813
- react/react#30812
- react/react#30811

</details>

---------

Co-authored-by: vercel-release-bot <[email protected]>
@coderabbitai coderabbitai Bot mentioned this pull request Jul 24, 2026
perf(ui): speed up search and interactive catalogue surfaces BigSimmo/PsychSift#1138
Merged
4 tasks done
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@sebmarkbage
[Fiber] Move runWithFiberInDEV from CommitWork to CommitEffects (reac…
595f1d7
…t#30882)

Stacked on react#30881.

Move `runWithFiberInDEV` from the recursive part of the commit phase and
instead wrap each call into user space. These should really map 1:1 with
where we're using `try/catch` since that's where we're calling into user
space.

The goal of this is to avoid the extra stack frames added by
`enableOwnerStacks` in the recursive parts to avoid stack overflow. This
way we only have a couple of extra at the end of the stack instead of a
couple of extra at every depth of the tree.

This branch was successfully deployed

1 active deployment
Preview — 731d483a Deployed Sep 6, 2024 by vercel[bot]
View deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@acdlite acdlite acdlite approved these changes
@hoxyq hoxyq Awaiting requested review from hoxyq

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@sebmarkbage @react-sizebot @acdlite @facebook-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.