react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Avoid jump to background executor when invoking JS in bridgeless

Open javache opened this issue 1 year ago • 3 comments

Summary: Noticed when profiling Store as Activity that every call into JS would be passed via a (default priority) background thread first. This is inefficient from a scheduling perspective. Instead use the Task's default/immediate executor to immediately execute the success callback on the current thread and avoid a thread change.

Changelog: [Internal]

Differential Revision: D57279034

javache avatar May 13 '24 15:05 javache

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

facebook-github-bot avatar May 13 '24 15:05 facebook-github-bot

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 19,609,477 +2
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 22,978,987 +5
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: e0a2e86d0346bd7e40adf69311daa538ca8c9c5f Branch: main

analysis-bot avatar May 13 '24 16:05 analysis-bot

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

facebook-github-bot avatar May 13 '24 20:05 facebook-github-bot

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

facebook-github-bot avatar Jun 04 '24 10:06 facebook-github-bot