Skip to content

Conversation

javache
Copy link
Member

@javache javache commented Sep 26, 2025

Summary:
These data-types are super common in React Native, and the anonymous inner classes add significantly to the GC workload we see. For ReadableMap this means we can save 6 additional object allocations for each LazySynchronizedImpl and the lambda that's passed in to it. On synthetic benchmarks this seems to improve core operations around ~10%.

Changelog: [Internal]

Differential Revision: D83245864

Summary:
These data-types are super common in React Native, and the anonymous inner classes add significantly to the GC workload we see. For ReadableMap this means we can save 6 additional object allocations for each LazySynchronizedImpl and the lambda that's passed in to it. On synthetic benchmarks this seems to improve core operations around ~10%.

Changelog: [Internal]

Differential Revision: D83245864
@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 Sep 26, 2025
@facebook-github-bot
Copy link
Contributor

@javache has exported this pull request. If you are a Meta employee, you can view the originating diff in D83245864.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 29b7406.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @javache in 29b7406

When will my fix make it into a release? | How to file a pick request?

@javache javache deleted the export-D83245864 branch September 26, 2025 15:16
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.

3 participants