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 — Create Fabric-specific version of ReactNativeAttributesPayload by dmytrorykun · Pull Request #28841 · react/react

Conversation

@dmytrorykun

@dmytrorykun dmytrorykun commented Apr 15, 2024 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Summary

This PR introduces Fabric-only version of ReactNativeAttributesPayload. It is a copy-paste of ReactNativeAttributesPayload.js, and is called ReactNativeAttributesPayloadFabric.js.
The idea behind this change is that certain optimizations in prop diffing may actually be a regression on the old architecture. For example, removing custom diffing may result in larger updateProps payloads. Which is, I guess, fine with JSI, but might be a problem with the bridge.

How did you test this change?

There should be no runtime effect of this change.

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 the CLA Signed label Apr 15, 2024
@react-sizebot

react-sizebot commented Apr 15, 2024 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Comparing: b498834...ad43eec

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.66 kB 6.66 kB = 1.82 kB 1.82 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 494.06 kB 494.06 kB = 88.22 kB 88.21 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.67 kB 6.67 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 498.86 kB 498.86 kB = 88.93 kB 88.92 kB
facebook-www/ReactDOM-prod.classic.js = 591.22 kB 591.22 kB = 103.96 kB 103.96 kB
facebook-www/ReactDOM-prod.modern.js = 567.44 kB 567.44 kB = 100.36 kB 100.36 kB
test_utils/ReactAllWarnings.js Deleted 64.26 kB 0.00 kB Deleted 16.02 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
react-native/implementations/ReactNativeRenderer-profiling.fb.js = 400.74 kB 399.47 kB = 69.73 kB 69.57 kB
react-native/implementations/ReactNativeRenderer-prod.fb.js = 373.51 kB 372.23 kB = 65.42 kB 65.28 kB
test_utils/ReactAllWarnings.js Deleted 64.26 kB 0.00 kB Deleted 16.02 kB 0.00 kB

Generated by 🚫 dangerJS against ad43eec

All reactions

Sorry, something went wrong.

Uh oh!

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

@dmytrorykun
dmytrorykun marked this pull request as ready for review April 23, 2024 15:04
Dmytro Rykun
Create Fabric-specific version of ReactNativeAttributesPayload
573c608
@dmytrorykun
dmytrorykun requested review from NickGerleman and rickhanlonii May 7, 2024 10:03
javache
javache approved these changes May 7, 2024
View reviewed changes
Dmytro Rykun
Keep fastAddProperties only in ReactNativeAttributePayloadFabric
ad43eec
javache
javache reviewed May 7, 2024
View reviewed changes
Comment thread packages/react-native-renderer/src/ReactNativeAttributePayload.js
} else {
return diffProperties(updatePayload, emptyObject, props, validAttributes);
}
// TODO: Fast path

@javache javache May 7, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Remove this TODO if we're only going to do so in ReactNativeAttributePayloadFabric. I don't believe we should be making any other changes to Paper.

Sorry, something went wrong.

Uh oh!

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

All reactions

@dmytrorykun dmytrorykun May 7, 2024

Copy link
Copy Markdown
Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This is just how the code looked before I added fastAddProperties.

Sorry, something went wrong.

Uh oh!

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

All reactions
javache
javache approved these changes May 7, 2024
View reviewed changes
@dmytrorykun
dmytrorykun merged commit 7039834 into react:main May 7, 2024
github-actions Bot pushed a commit that referenced this pull request May 7, 2024
@dmytrorykun
Create Fabric-specific version of ReactNativeAttributesPayload (#28841)
acdffc0
## Summary

This PR introduces Fabric-only version of
`ReactNativeAttributesPayload`. It is a copy-paste of
`ReactNativeAttributesPayload.js`, and is called
`ReactNativeAttributesPayloadFabric.js`.
The idea behind this change is that certain optimizations in prop
diffing may actually be a regression on the old architecture. For
example, removing custom diffing may result in larger updateProps
payloads. Which is, I guess, fine with JSI, but might be a problem with
the bridge.

## How did you test this change?

There should be no runtime effect of this change.

DiffTrain build for commit 7039834.
@eps1lon eps1lon mentioned this pull request May 16, 2024
Update React from 4508873393 to 04b058868c vercel/next.js#65864
Merged
eps1lon added a commit to vercel/next.js that referenced this pull request May 16, 2024
@eps1lon
Update React from 4508873393 to 04b058868c (#65864)
c045f0f
Completes #65845 which only
updated Canary not Experimental.

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

- react/react#29026
- react/react#29025
- react/react#28743
- react/react#29022
- react/react#29023
- react/react#29015
- react/react#29016
- react/react#28988
- react/react#28987
- react/react#28986
- react/react#29014
- react/react#28982
- react/react#29006
- react/react#28973
- react/react#28841
- react/react#28964
- react/react#28990
- react/react#29003
- react/react#28989
- react/react#28893
- react/react#28887
- react/react#28807
- react/react#28978
- react/react#28963
- react/react#28972
- react/react#28970
- react/react#28816
- react/react#28977
- react/react#28974
- react/react#28976
- react/react#28975
- react/react#28969
- react/react#28966
- react/react#28056

</details>
@dmytrorykun
dmytrorykun deleted the create-ReactNativeAttributesPayloadFabric branch February 12, 2025 13:38
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
Dmytro Rykun
Create Fabric-specific version of ReactNativeAttributesPayload (react…
a582a24
…#28841)

## Summary

This PR introduces Fabric-only version of
`ReactNativeAttributesPayload`. It is a copy-paste of
`ReactNativeAttributesPayload.js`, and is called
`ReactNativeAttributesPayloadFabric.js`.
The idea behind this change is that certain optimizations in prop
diffing may actually be a regression on the old architecture. For
example, removing custom diffing may result in larger updateProps
payloads. Which is, I guess, fine with JSI, but might be a problem with
the bridge.

## How did you test this change?

There should be no runtime effect of this change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@javache javache javache approved these changes
@NickGerleman NickGerleman Awaiting requested review from NickGerleman
@rickhanlonii rickhanlonii Awaiting requested review from rickhanlonii

Uh oh!

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

Assignees

No one assigned

Labels

CLA Signed

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

@dmytrorykun @react-sizebot @javache @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.