-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fabric: Simplifying RCTPerformMountInstructions
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
- Loading branch information
1 parent
e23e932
commit f2fdc1a
Showing
3 changed files
with
61 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters