Skip to content

Conversation

@lenaic
Copy link

@lenaic lenaic commented Oct 10, 2025

Summary:
The binary size for RN builds increased by ~180KiB due to the implementation of the experimental_backgroundImage property diffing.

This diff removes default inlining for the toDynamic serialization functions of the structs used by the linear and radial gradient styles.

Combined with the binary size improvements done previously for ColorStop and ValueUnit, the binary size has been reduced by 176.0KiB

Changelog: [Internal]

Differential Revision: D84214151

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 10, 2025
@meta-codesync
Copy link

meta-codesync bot commented Oct 10, 2025

@lenaic has exported this pull request. If you are a Meta employee, you can view the originating Diff in D84214151.

lenaic pushed a commit to lenaic/react-native-macos that referenced this pull request Oct 13, 2025
Summary:

The binary size for RN builds increased by ~180KiB due to the implementation of the `experimental_backgroundImage` property diffing.

This diff removes default inlining for the `toDynamic` serialization functions of the structs used by the linear and radial gradient styles.

Combined with the binary size improvements done previously for `ColorStop` and `ValueUnit`, the binary size has been reduced by 176.0KiB

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D84214151
Nick Lefever added 2 commits October 14, 2025 05:31
…ebook#54125)

Summary:

With ColorStop and ValueUnit being used at multiple locations, inlining the `toDynamic` conversion used for RN Android and using `std::format` to convert floating point values to string increased the binary size of RN Android by ~180KiB. This diff declares the functions outside the header to avoid inlining the functions and removes the dependency on `std::format` for the percent value string formatting.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D84349391
Summary:

The binary size for RN builds increased by ~180KiB due to the implementation of the `experimental_backgroundImage` property diffing.

This diff removes default inlining for the `toDynamic` serialization functions of the structs used by the linear and radial gradient styles.

Combined with the binary size improvements done previously for `ColorStop` and `ValueUnit`, the binary size has been reduced by 176.0KiB

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D84214151
@meta-codesync meta-codesync bot closed this in 93278d5 Oct 14, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 14, 2025
@meta-codesync
Copy link

meta-codesync bot commented Oct 14, 2025

This pull request has been merged in 93278d5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants