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

Set deletedTreeCleanUpLevel to 3 #21679

Merged
merged 1 commit into from
Jun 14, 2021
Merged

Set deletedTreeCleanUpLevel to 3 #21679

merged 1 commit into from
Jun 14, 2021

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Jun 14, 2021

As far as I understand the result of testing this was positive. Anything holding us off from hardcoding it?

Related to #16087.

@facebook-github-bot facebook-github-bot added React Core Team Opened by a member of the React Core Team CLA Signed labels Jun 14, 2021
@sebmarkbage
Copy link
Collaborator

Can we regress on this in case we need to for implementation details?

@sizebot
Copy link

sizebot commented Jun 14, 2021

Comparing: 1a106bd...734c368

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 +0.15% 126.89 kB 127.08 kB +0.13% 40.69 kB 40.74 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js +0.14% 129.70 kB 129.89 kB +0.14% 41.61 kB 41.67 kB
facebook-www/ReactDOM-prod.classic.js = 406.00 kB 405.00 kB = 75.07 kB 74.93 kB
facebook-www/ReactDOM-prod.modern.js = 394.35 kB 393.35 kB = 73.25 kB 73.11 kB
facebook-www/ReactDOMForked-prod.classic.js = 406.00 kB 405.00 kB = 75.07 kB 74.93 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.development.js +0.29% 608.85 kB 610.64 kB +0.47% 133.40 kB 134.03 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.development.js +0.29% 608.85 kB 610.64 kB +0.47% 133.40 kB 134.03 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.development.js +0.29% 638.61 kB 640.46 kB +0.50% 134.88 kB 135.55 kB
oss-stable/react-test-renderer/umd/react-test-renderer.development.js +0.29% 638.61 kB 640.46 kB +0.50% 134.88 kB 135.55 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-dev.js +0.29% 620.56 kB 622.35 kB +0.49% 134.51 kB 135.16 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.development.js +0.29% 624.78 kB 626.57 kB +0.46% 136.81 kB 137.44 kB
facebook-www/ReactTestRenderer-dev.classic.js +0.28% 633.22 kB 635.01 kB +0.49% 135.91 kB 136.57 kB
facebook-www/ReactTestRenderer-dev.modern.js +0.28% 633.23 kB 635.02 kB +0.49% 135.92 kB 136.58 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.development.js +0.28% 655.39 kB 657.23 kB +0.48% 138.33 kB 139.00 kB
oss-stable-semver/react-art/cjs/react-art.development.js +0.28% 636.46 kB 638.25 kB +0.47% 137.81 kB 138.45 kB
oss-stable/react-art/cjs/react-art.development.js +0.28% 636.46 kB 638.25 kB +0.47% 137.81 kB 138.45 kB
oss-experimental/react-art/cjs/react-art.development.js +0.27% 658.92 kB 660.72 kB +0.46% 142.55 kB 143.21 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.development.js +0.27% 695.64 kB 697.53 kB +0.53% 147.80 kB 148.59 kB
oss-stable/react-reconciler/cjs/react-reconciler.development.js +0.27% 695.64 kB 697.53 kB +0.53% 147.80 kB 148.59 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js +0.26% 718.30 kB 720.18 kB +0.52% 152.50 kB 153.28 kB
react-native/implementations/ReactFabric-dev.js +0.26% 700.41 kB 702.21 kB +0.54% 150.99 kB 151.81 kB
react-native/implementations/ReactFabric-dev.fb.js +0.25% 713.67 kB 715.46 kB +0.54% 153.17 kB 154.00 kB
oss-stable-semver/react-art/umd/react-art.development.js +0.25% 738.55 kB 740.39 kB +0.50% 156.13 kB 156.91 kB
oss-stable/react-art/umd/react-art.development.js +0.25% 738.55 kB 740.39 kB +0.50% 156.13 kB 156.91 kB
react-native/implementations/ReactNativeRenderer-dev.js +0.25% 718.20 kB 719.99 kB +0.44% 155.44 kB 156.12 kB
oss-stable-semver/react-dom/cjs/react-dom.development.js +0.25% 954.79 kB 957.16 kB +0.38% 214.88 kB 215.69 kB
oss-stable/react-dom/cjs/react-dom.development.js +0.25% 954.79 kB 957.16 kB +0.38% 214.88 kB 215.69 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js +0.25% 731.43 kB 733.22 kB +0.43% 157.67 kB 158.35 kB
oss-stable-semver/react-dom/umd/react-dom.development.js +0.24% 1,002.76 kB 1,005.21 kB +0.42% 217.55 kB 218.45 kB
oss-stable/react-dom/umd/react-dom.development.js +0.24% 1,002.76 kB 1,005.21 kB +0.42% 217.55 kB 218.45 kB
oss-experimental/react-dom/cjs/react-dom.development.js +0.24% 979.22 kB 981.59 kB +0.37% 219.96 kB 220.78 kB
oss-experimental/react-art/umd/react-art.development.js +0.24% 762.37 kB 764.21 kB +0.49% 160.87 kB 161.66 kB
oss-experimental/react-dom/umd/react-dom.development.js +0.24% 1,028.66 kB 1,031.12 kB +0.41% 222.61 kB 223.53 kB
facebook-www/ReactDOMTesting-dev.modern.js +0.24% 948.32 kB 950.55 kB +0.35% 213.45 kB 214.21 kB
facebook-www/ReactDOMTesting-dev.classic.js +0.23% 975.82 kB 978.06 kB +0.34% 219.21 kB 219.96 kB
facebook-www/ReactDOM-profiling.classic.js = 431.02 kB 430.02 kB = 79.29 kB 79.14 kB
facebook-www/ReactDOMForked-profiling.classic.js = 431.02 kB 430.02 kB = 79.29 kB 79.15 kB
facebook-www/ReactDOM-profiling.modern.js = 419.34 kB 418.33 kB = 77.53 kB 77.37 kB
facebook-www/ReactDOMForked-profiling.modern.js = 419.34 kB 418.33 kB = 77.53 kB 77.37 kB
facebook-www/ReactDOM-prod.classic.js = 406.00 kB 405.00 kB = 75.07 kB 74.93 kB
facebook-www/ReactDOMForked-prod.classic.js = 406.00 kB 405.00 kB = 75.07 kB 74.93 kB
facebook-www/ReactDOM-prod.modern.js = 394.35 kB 393.35 kB = 73.25 kB 73.11 kB
facebook-www/ReactDOMForked-prod.modern.js = 394.35 kB 393.35 kB = 73.26 kB 73.11 kB
facebook-www/ReactART-prod.classic.js = 262.91 kB 261.94 kB = 46.66 kB 46.51 kB
facebook-www/ReactART-prod.modern.js = 255.35 kB 254.38 kB = 45.37 kB 45.22 kB
facebook-www/ReactIs-dev.classic.js = 10.05 kB 9.98 kB = 2.68 kB 2.66 kB
facebook-www/ReactIs-dev.modern.js = 10.05 kB 9.98 kB = 2.68 kB 2.66 kB

Generated by 🚫 dangerJS against 734c368

@gaearon
Copy link
Collaborator Author

gaearon commented Jun 14, 2021

Yea I think it's "best effort", not a guarantee.

@gaearon gaearon merged commit 101ea9f into facebook:master Jun 14, 2021
@gaearon gaearon mentioned this pull request Jun 14, 2021
6 tasks
@robbecker-wf
Copy link

Would this be released in React 18 or backported to React 17?

@gaearon
Copy link
Collaborator Author

gaearon commented Jun 14, 2021

No plans to backport to 17. Can't promise we'll keep it in 18 (or that it won't regress at some point) but unless something else changes, this change would be in 18.

koto pushed a commit to koto/react that referenced this pull request Jun 15, 2021
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Jun 22, 2021
Summary:
This sync includes the following changes:
- **[43f4cc160](facebook/react@43f4cc160 )**: Fix failing test ([#21697](facebook/react#21697)) //<Dan Abramov>//
- **[d0f348dc1](facebook/react@d0f348dc1 )**: Fix for failed Suspense layout semantics ([#21694](facebook/react#21694)) //<Brian Vaughn>//
- **[bd0a96344](facebook/react@bd0a96344 )**: Throw when `act` is used in production ([#21686](facebook/react#21686)) //<Andrew Clark>//
- **[9343f8720](facebook/react@9343f8720 )**: Use the server src files as entry points for the builds/tests ([#21683](facebook/react#21683)) //<Sebastian Markbåge>//
- **[502f8a2a0](facebook/react@502f8a2a0 )**: [Fizz/Flight] Don't use default args ([#21681](facebook/react#21681)) //<Sebastian Markbåge>//
- **[a8f5e77b9](facebook/react@a8f5e77b9 )**: Remove invokeGuardedCallback from commit phase ([#21666](facebook/react#21666)) //<Dan Abramov>//
- **[dbe3363cc](facebook/react@dbe3363cc )**: [Fizz] Implement Legacy renderToString and renderToNodeStream on top of Fizz ([#21276](facebook/react#21276)) //<Sebastian Markbåge>//
- **[101ea9f55](facebook/react@101ea9f55 )**: Set deletedTreeCleanUpLevel to 3 ([#21679](facebook/react#21679)) //<Dan Abramov>//
- **[1a106bdc2](facebook/react@1a106bdc2 )**: Wrap eventhandle-specific logic in a flag ([#21657](facebook/react#21657)) //<Dan Abramov>//
- **[cb30388d1](facebook/react@cb30388d1 )**: Export React Native `AttributeType` Types ([#21661](facebook/react#21661)) //<Timothy Yung>//
- **[c1536795c](facebook/react@c1536795c )**: Revert "Make enableSuspenseLayoutEffectSemantics static for www ([#21617](facebook/react#21617))" ([#21656](facebook/react#21656)) //<Sebastian Markbåge>//

Changelog:
[General][Changed] - React Native sync for revisions c96b78e...568dc35

jest_e2e[run_all_tests]

Reviewed By: rickhanlonii

Differential Revision: D29303157

fbshipit-source-id: 90952885eb2264f4effa04070357b80700bb9be3
@trentgrover-wf
Copy link

For posterity - We (Workiva) have verified that our memory leak problems are resolved by this fix in master. Is there any rough expectation for when this will receive an official release?

@gaearon
Copy link
Collaborator Author

gaearon commented Jun 30, 2021

Please see my reply in #16087 (comment)

kassens added a commit that referenced this pull request Jan 17, 2023
I noticed this was an experiment concluded 16 months ago (#21679) that
this extra work is beneficial
to break up cycles leaking memory in product code.
github-actions bot pushed a commit that referenced this pull request Jan 17, 2023
I noticed this was an experiment concluded 16 months ago (#21679) that
this extra work is beneficial
to break up cycles leaking memory in product code.

DiffTrain build for [ee85098](ee85098)
[View git log for this commit](https://github.com/facebook/react/commits/ee85098019bf9703b32f608f8bbd5f8fb1a7d60b)
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.

7 participants