Skip to content

Don't prefetch Android res images with int ids#53493

Closed
christophpurrer wants to merge 2 commits into
react:mainfrom
christophpurrer:export-D81200872
Closed

Don't prefetch Android res images with int ids#53493
christophpurrer wants to merge 2 commits into
react:mainfrom
christophpurrer:export-D81200872

Conversation

@christophpurrer

Copy link
Copy Markdown
Contributor

Summary:
Changelog: [Internal]

Don't prefetch local images shipped with the app

Differential Revision: D81200872

@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 Aug 28, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

Summary:

Changelog: [Internal]

Sending individual image prefetch request on Android over JNI is causing measurable performance regression. The idea here is batch all image prefetch request for a given shadowNodeTree and then flush it all at once - **DONE** in the next change.

Another optimization we should consider is to execute the batch on `n imagePrefetchRequest` off the JavaScript thread `mqt_v_js` and instead on e.g. the UiThread (on which currently Android Image UI initiates image resource downloads)

Reviewed By: lenaic

Differential Revision: D81186916
Summary:

Changelog: [Internal]

Don't prefetch local images shipped with the app

Reviewed By: lenaic

Differential Revision: D81200872
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Aug 29, 2025
Summary:

Changelog: [Internal]

Don't prefetch local images shipped with the app

Reviewed By: lenaic

Differential Revision: D81200872
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 29, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 5858c83.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @christophpurrer in 5858c83

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.

3 participants