Skip to content

Do eager native module init concurrently with JS bundle loading#45324

Closed
javache wants to merge 5 commits into
facebook:mainfrom
javache:export-D59465977
Closed

Do eager native module init concurrently with JS bundle loading#45324
javache wants to merge 5 commits into
facebook:mainfrom
javache:export-D59465977

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented Jul 8, 2024

Summary:
Some native modules can be expensive to initialize (eg ones that do Android IPC). Since we have sufficient concurrency controls in the TurboModule lookup path, we can do this eager init on the native modules thread, and bring forward JS bundle execution.

Changelog: [Android][Changed] TurboModules that set needsEagerInit = true will now be constructed on the mqt_native thread.

Differential Revision: D59465977

javache and others added 5 commits July 8, 2024 07:07
Differential Revision: D59465978
Differential Revision: D59465974
Differential Revision: D59465976
Summary:
Some native modules can be expensive to initialize (eg ones that do Android IPC). Since we have sufficient concurrency controls in the TurboModule lookup path, we can do this eager init on the native modules thread, and bring forward JS bundle execution.

Changelog: [Android][Changed] TurboModules that set `needsEagerInit = true` will now be constructed on the mqt_native thread.

Differential Revision: D59465977
@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 labels Jul 8, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in c4a6bbc.

@github-actions
Copy link
Copy Markdown

This pull request was successfully merged by @javache in c4a6bbc.

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

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.

2 participants