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

Add a feature flag to disable [CATransaction commit] during mount #37459

Closed
wants to merge 1 commit into from

Conversation

sammy-SC
Copy link
Contributor

Summary:
changelog: [internal]

Let's try to dissable manual [CATransaction commit]. This may reduce UI thrash in case several Fabric transactions are committed within single UIRunLoop tick.

While working on the new architecture benchmarks, with the help of instrumentation I noticed two paints on some occasions. This was happening around 50% of the time I executed a scenario. It dropped the rendering time on 5k of from ~800ms down to ~600ms.
Also, the original reason why [CATransaction commit] was added has passed. It was added to make Screenshot tests less flaky but we no longer use screenshot tests.

Reviewed By: javache

Differential Revision: D45870408

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels May 17, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45870408

@analysis-bot
Copy link

analysis-bot commented May 17, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,732,586 -3
android hermes armeabi-v7a 8,043,962 +28
android hermes x86 9,221,948 +3
android hermes x86_64 9,074,944 +30
android jsc arm64-v8a 9,297,788 +0
android jsc armeabi-v7a 8,486,594 +36
android jsc x86 9,358,544 +18
android jsc x86_64 9,615,142 +29

Base commit: 6d6b1fd
Branch: main

…cebook#37459)

Summary:
Pull Request resolved: facebook#37459

changelog: [internal]

Let's try to dissable manual `[CATransaction commit]`. This may reduce UI thrash in case several Fabric transactions are committed within single UIRunLoop tick.

While working on [the new architecture benchmarks](reactwg/react-native-new-architecture#123), with the help of instrumentation I noticed two paints on some occasions. This was happening around 50% of the time I executed a scenario. It dropped the rendering time on 5k of <Text /> from ~800ms down to ~600ms.
Also, the original reason why `[CATransaction commit]` was added has passed. It was added to make Screenshot tests less flaky but we no longer use screenshot tests.

Reviewed By: javache

Differential Revision: D45870408

fbshipit-source-id: db4ea823800a4640ade09caf3d2078f052ec4aaf
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45870408

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 0a4a95f.

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. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants