react-native
react-native copied to clipboard
Avoid jump to background executor when invoking JS in bridgeless
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
This pull request was exported from Phabricator. Differential Revision: D57279034
| 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
This pull request was exported from Phabricator. Differential Revision: D57279034
This pull request was exported from Phabricator. Differential Revision: D57279034