Skip to content

Improve logic to report mounted surfaces #43337

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

Closed
wants to merge 1 commit into from

Conversation

rubennorte
Copy link
Contributor

Summary:
Changelog: [internal]

Mount instructions and listeners are only called from the UI thread, so there's no need to have synchronization mechanisms for concurrency.

We're also scheduling mount hooks notifications once, but subsequent calls are ignored instead of accumulated to be notified together. This also changes that to collect all the surface IDs in the array that is read on notification.

Differential Revision: D54547194

@facebook-github-bot facebook-github-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 Mar 6, 2024
@facebook-github-bot
Copy link
Contributor

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Mar 6, 2024
Summary:

Changelog: [internal]

Mount instructions and listeners are only called from the UI thread, so there's no need to have synchronization mechanisms for concurrency.

We're also scheduling mount hooks notifications once, but subsequent calls are ignored instead of accumulated to be notified together. This also changes that to collect all the surface IDs in the array that is read on notification.

Differential Revision: D54547194
@facebook-github-bot
Copy link
Contributor

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

@analysis-bot
Copy link

analysis-bot commented Mar 6, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 18,008,452 +99
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 21,366,890 +9
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: b2fba37
Branch: main

Summary:

Changelog: [internal]

Mount instructions and listeners are only called from the UI thread, so there's no need to have synchronization mechanisms for concurrency.

We're also scheduling mount hooks notifications once, but subsequent calls are ignored instead of accumulated to be notified together. This also changes that to collect all the surface IDs in the array that is read on notification.

Differential Revision: D54547194
rubennorte added a commit to rubennorte/react-native that referenced this pull request Mar 6, 2024
Summary:

Changelog: [internal]

Mount instructions and listeners are only called from the UI thread, so there's no need to have synchronization mechanisms for concurrency.

We're also scheduling mount hooks notifications once, but subsequent calls are ignored instead of accumulated to be notified together. This also changes that to collect all the surface IDs in the array that is read on notification.

Differential Revision: D54547194
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a66f445.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 6, 2024
rubennorte added a commit to rubennorte/react-native that referenced this pull request Mar 18, 2025
Summary:
Changelog: [internal]

I refactored `FabricUIManager` in D54547194 / facebook#43337 and accidentally removed setting this flag to avoid scheduling redundant tasks in the UI thread to report mount. This fixes it.

Differential Revision: D71387374
rubennorte added a commit to rubennorte/react-native that referenced this pull request Mar 18, 2025
Summary:

Changelog: [internal]

I refactored `FabricUIManager` in D54547194 / facebook#43337 and accidentally removed setting this flag to avoid scheduling redundant tasks in the UI thread to report mount. This fixes it.

Differential Revision: D71387374
rubennorte added a commit to rubennorte/react-native that referenced this pull request Mar 18, 2025
Summary:

Changelog: [internal]

I refactored `FabricUIManager` in D54547194 / facebook#43337 and accidentally removed setting this flag to avoid scheduling redundant tasks in the UI thread to report mount. This fixes it.

Differential Revision: D71387374
rubennorte added a commit to rubennorte/react-native that referenced this pull request Mar 18, 2025
Summary:

Changelog: [internal]

I refactored `FabricUIManager` in D54547194 / facebook#43337 and accidentally removed setting this flag to avoid scheduling redundant tasks in the UI thread to report mount. This fixes it.

Reviewed By: javache

Differential Revision: D71387374
facebook-github-bot pushed a commit that referenced this pull request Mar 18, 2025
Summary:
Pull Request resolved: #50090

Changelog: [internal]

I refactored `FabricUIManager` in D54547194 / #43337 and accidentally removed setting this flag to avoid scheduling redundant tasks in the UI thread to report mount. This fixes it.

Reviewed By: javache

Differential Revision: D71387374

fbshipit-source-id: cad8a3ead2434738325560902cbab817e5d5dde7
gabrieldonadel pushed a commit that referenced this pull request Mar 24, 2025
Summary:
Pull Request resolved: #50090

Changelog: [internal]

I refactored `FabricUIManager` in D54547194 / #43337 and accidentally removed setting this flag to avoid scheduling redundant tasks in the UI thread to report mount. This fixes it.

Reviewed By: javache

Differential Revision: D71387374

fbshipit-source-id: cad8a3ead2434738325560902cbab817e5d5dde7
fabriziocucci pushed a commit that referenced this pull request Mar 26, 2025
Summary:
Pull Request resolved: #50090

Changelog: [internal]

I refactored `FabricUIManager` in D54547194 / #43337 and accidentally removed setting this flag to avoid scheduling redundant tasks in the UI thread to report mount. This fixes it.

Reviewed By: javache

Differential Revision: D71387374

fbshipit-source-id: cad8a3ead2434738325560902cbab817e5d5dde7
react-native-bot pushed a commit that referenced this pull request Apr 1, 2025
Summary:
Pull Request resolved: #50090

Changelog: [internal]

I refactored `FabricUIManager` in D54547194 / #43337 and accidentally removed setting this flag to avoid scheduling redundant tasks in the UI thread to report mount. This fixes it.

Reviewed By: javache

Differential Revision: D71387374

fbshipit-source-id: cad8a3ead2434738325560902cbab817e5d5dde7
react-native-bot pushed a commit that referenced this pull request Jul 1, 2025
Summary:
Pull Request resolved: #50090

Changelog: [internal]

I refactored `FabricUIManager` in D54547194 / #43337 and accidentally removed setting this flag to avoid scheduling redundant tasks in the UI thread to report mount. This fixes it.

Reviewed By: javache

Differential Revision: D71387374

fbshipit-source-id: cad8a3ead2434738325560902cbab817e5d5dde7
athenayao pushed a commit to discord/react-native that referenced this pull request Jul 17, 2025
Summary:
Pull Request resolved: facebook#50090

Changelog: [internal]

I refactored `FabricUIManager` in D54547194 / facebook#43337 and accidentally removed setting this flag to avoid scheduling redundant tasks in the UI thread to report mount. This fixes it.

Reviewed By: javache

Differential Revision: D71387374

fbshipit-source-id: cad8a3ead2434738325560902cbab817e5d5dde7
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