mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
290dae9df5
Summary: Preallocation can take 10-20% of time when creating new nodes. (according to systrace measurements). At the moment, we are executing all preallocation calls in JS thread, potentially slowing down the progress there. Moving them to bg thread is a simple micro-optimization that ensures we return the node to JS as soon as possible. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D32677843 fbshipit-source-id: 3df47ae9aa365a8db720d71e2423c87659e9128c