mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This diff inlines all mount-instruction functions into a single one - RCTPerformMountInstructions. The main purpose is to reduce the number of calls to `RCTComponentViewRegistry` for some instructions. E.g., before the change, the `Insert` (or `Update`) instruction had seven identical calls to the registry. That's not a huge deal but there is no need to pay for it either. Maybe it can save us a couple of milliseconds during TTI. The code of those functions is quite straight-forward, so this change probably even improves readability. Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D22402987 fbshipit-source-id: 043a4114ba42622e9ed226f4d5e41ed45c1b066c