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 — Simplify cache pool contexts by acdlite · Pull Request #23280 · react/react

Conversation

@acdlite

@acdlite acdlite commented Feb 11, 2022

Copy link
Copy Markdown
Collaborator

The pooledCache variable always points to either root.pooledCache or the stack cursor that is used to track caches that were resumed from a previous render. We can get rid of it by reading from those instead. This simplifies the code a lot and is harder to mess up, I think.

Sorry, something went wrong.

Uh oh!

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

All reactions
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Feb 11, 2022
@sizebot

sizebot commented Feb 11, 2022 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Comparing: 64223fe...95495c0

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.min.js = 130.35 kB 130.35 kB = 41.83 kB 41.83 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 135.54 kB 135.33 kB = 43.35 kB 43.26 kB
facebook-www/ReactDOM-prod.classic.js = 431.29 kB 430.69 kB = 79.12 kB 79.04 kB
facebook-www/ReactDOM-prod.modern.js = 421.18 kB 420.57 kB = 77.67 kB 77.57 kB
facebook-www/ReactDOMForked-prod.classic.js = 431.29 kB 430.69 kB = 79.12 kB 79.04 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/ReactART-prod.classic.js = 277.85 kB 277.28 kB = 49.36 kB 49.28 kB
oss-experimental/react-reconciler/cjs/react-reconciler.production.min.js = 96.82 kB 96.62 kB = 29.69 kB 29.60 kB
facebook-www/ReactART-prod.modern.js = 270.16 kB 269.58 kB = 48.09 kB 47.99 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.production.min.js = 89.20 kB 88.99 kB = 27.71 kB 27.64 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.production.min.js = 88.97 kB 88.77 kB = 27.43 kB 27.34 kB
oss-experimental/react-art/cjs/react-art.production.min.js = 86.56 kB 86.35 kB = 26.77 kB 26.69 kB

Generated by 🚫 dangerJS against 95495c0

All reactions

Sorry, something went wrong.

Uh oh!

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

acdlite
acdlite commented Feb 11, 2022
View reviewed changes
Comment thread packages/react-reconciler/src/__tests__/ReactCache-test.js Resolved

Uh oh!

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

@acdlite
acdlite marked this pull request as draft February 11, 2022 20:08
@acdlite
acdlite force-pushed the simplify-cache-context branch from 771740e to 93eca77 Compare February 11, 2022 20:16
@acdlite
Simplify cache pool contexts
95495c0
The `pooledCache` variable always points to either `root.pooledCache`
or the stack cursor that is used to track caches that were resumed from
a previous render. We can get rid of it by reading from those instead.
This simplifies the code a lot and is harder to mess up, I think.
@acdlite
acdlite force-pushed the simplify-cache-context branch from 93eca77 to 95495c0 Compare February 11, 2022 22:18
@acdlite
acdlite requested review from josephsavona and lunaruan February 11, 2022 22:18
@acdlite
acdlite marked this pull request as ready for review February 11, 2022 22:18
lunaruan
lunaruan approved these changes Feb 11, 2022
View reviewed changes
@acdlite
acdlite merged commit 27b5699 into react:main Feb 11, 2022
facebook-github-bot pushed a commit to react/react-native that referenced this pull request Feb 17, 2022
Andrei Shikov @facebook-github-bot
React Native sync for revisions a3bde79...27b5699
aca9037
Summary:
This sync includes the following changes:
- **[27b5699](react/react@27b569969 )**: Simplify cache pool contexts ([#23280](react/react#23280)) //<Andrew Clark>//
- **[1fb0d06](react/react@1fb0d0687 )**: [Devtools][Transition Tracing] Add Transition callbacks to createRoot ([#23276](react/react#23276)) //<Luna Ruan>//
- **[a6987be](react/react@a6987bee7 )**: add <TracingMarker> component boilerplate ([#23275](react/react#23275)) //<Luna Ruan>//
- **[796fff5](react/react@796fff548 )**: Allow suspending outside a Suspense boundary ([#23267](react/react#23267)) //<Andrew Clark>//
- **[64223fe](react/react@64223fed8 )**: Fix: Multiple hydration errors in same render ([#23273](react/react#23273)) //<Andrew Clark>//
- **[efd8f64](react/react@efd8f6442 )**: Resolve default onRecoverableError at root init ([#23264](react/react#23264)) //<Andrew Clark>//
- **[e0af1aa](react/react@e0af1aabe )**: Fix wrong context argument to `apply` //<Andrew Clark>//
- **[9b5e051](react/react@9b5e0517b )**: Remove deprecated wildcard folder mapping ([#23256](react/react#23256)) //<Andrew Clark>//
- **[274b9fb](react/react@274b9fb16 )**: Remove path resolution from internal forks plugin ([#23255](react/react#23255)) //<Andrew Clark>//

Changelog:
[General][Changed] - React Native sync for revisions a3bde79...27b5699

jest_e2e[run_all_tests]

Reviewed By: rickhanlonii, kacieb

Differential Revision: D34241986

fbshipit-source-id: f6ab62df2a918728864283b4f13201275eb3b8a3
zhengjitf pushed a commit to zhengjitf/react that referenced this pull request Apr 15, 2022
@acdlite @zhengjitf
Simplify cache pool contexts (react#23280)
2f29704
The `pooledCache` variable always points to either `root.pooledCache`
or the stack cursor that is used to track caches that were resumed from
a previous render. We can get rid of it by reading from those instead.
This simplifies the code a lot and is harder to mess up, I think.
Saadnajmi pushed a commit to Saadnajmi/react-native-macos that referenced this pull request Jan 15, 2023
Andrei Shikov @Saadnajmi
React Native sync for revisions a3bde79...27b5699
203bcf3
Summary:
This sync includes the following changes:
- **[27b5699](react/react@27b569969 )**: Simplify cache pool contexts ([react#23280](react/react#23280)) //<Andrew Clark>//
- **[1fb0d06](react/react@1fb0d0687 )**: [Devtools][Transition Tracing] Add Transition callbacks to createRoot ([react#23276](react/react#23276)) //<Luna Ruan>//
- **[a6987be](react/react@a6987bee7 )**: add <TracingMarker> component boilerplate ([react#23275](react/react#23275)) //<Luna Ruan>//
- **[796fff5](react/react@796fff548 )**: Allow suspending outside a Suspense boundary ([react#23267](react/react#23267)) //<Andrew Clark>//
- **[64223fe](react/react@64223fed8 )**: Fix: Multiple hydration errors in same render ([react#23273](react/react#23273)) //<Andrew Clark>//
- **[efd8f64](react/react@efd8f6442 )**: Resolve default onRecoverableError at root init ([react#23264](react/react#23264)) //<Andrew Clark>//
- **[e0af1aa](react/react@e0af1aabe )**: Fix wrong context argument to `apply` //<Andrew Clark>//
- **[9b5e051](react/react@9b5e0517b )**: Remove deprecated wildcard folder mapping ([react#23256](react/react#23256)) //<Andrew Clark>//
- **[274b9fb](react/react@274b9fb16 )**: Remove path resolution from internal forks plugin ([react#23255](react/react#23255)) //<Andrew Clark>//

Changelog:
[General][Changed] - React Native sync for revisions a3bde79...27b5699

jest_e2e[run_all_tests]

Reviewed By: rickhanlonii, kacieb

Differential Revision: D34241986

fbshipit-source-id: f6ab62df2a918728864283b4f13201275eb3b8a3
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
@acdlite
Simplify cache pool contexts (react#23280)
e84f4f0
The `pooledCache` variable always points to either `root.pooledCache`
or the stack cursor that is used to track caches that were resumed from
a previous render. We can get rid of it by reading from those instead.
This simplifies the code a lot and is harder to mess up, I think.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@acdlite
Simplify cache pool contexts (react#23280)
8836422
The `pooledCache` variable always points to either `root.pooledCache`
or the stack cursor that is used to track caches that were resumed from
a previous render. We can get rid of it by reading from those instead.
This simplifies the code a lot and is harder to mess up, I think.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@josephsavona josephsavona Awaiting requested review from josephsavona
1 more reviewer
@lunaruan lunaruan lunaruan approved these changes
Reviewers whose approvals may not affect merge requirements

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.

5 participants

@acdlite @sizebot @lunaruan @josephsavona @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.