react-native/Libraries
Nick Lockwood 9f48c004ba Added setChildren() function
Summary:
public
Most of the time - especially during app startup - when we call UIManager.manageChildren(), we are actually just adding the first set of children to a newly created view.

This case is already optimized for in the JS code, by memoizing index arrays at various sizes, but this is not especially efficient since it is still sending an array of indices with each call that could be easily inferred on the native side instead.

I've added a hybrid native/JS optimization that improves the performance for this case. It's not a huge win in terms of time saved, but benchmarks show improvements in the ~1% range for several of the app startup metrics.

Reviewed By: tadeuzagallo

Differential Revision: D2757388

fb-gh-sync-id: 74f0cdbba93af2c04d69b192a8c2cc5cf429fa09
2015-12-15 06:56:31 -08:00
..
ART
ActionSheetIOS Add tintColor for buttons. 2015-12-09 05:19:25 -08:00
AdSupport
Animated fix animated lint warnings 2015-12-13 11:45:28 -08:00
AppRegistry Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
AppStateIOS
BatchedBridge Rename BridgeProfiling to Systrace for consistency 2015-12-11 03:53:19 -08:00
CameraRoll
Components Add deep linking support to IntentAndroid 2015-12-15 06:27:27 -08:00
CustomComponents Support onLayout and onContentSizeChange attributes on ListView 2015-12-10 12:46:31 -08:00
DebugComponentHierarchy
Device
Devtools Use pre-bundled elements inspector 2015-10-29 11:21:32 -07:00
Fetch
Geolocation geolocation is now opensourced on android 2015-12-15 10:10:20 +08:00
Image add backfaceVisibility to ImageStylePropTypes 2015-12-14 18:57:31 -08:00
Inspector Inspecting stateless components. 2015-12-08 10:13:25 -08:00
Interaction
JavaScriptAppEngine Rename BridgeProfiling to Systrace for consistency 2015-12-11 03:53:19 -08:00
LayoutAnimation
LinkingIOS
Modal
NativeApp Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
Network
Picker
Portal
PullToRefresh Exposes `setNativeProps` method for PullToRefreshViewAndroid 2015-12-14 12:58:31 -08:00
PushNotificationIOS Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -08:00
QuickPerformanceLogger
RCTTest
RKBackendNode
ReactIOS
ReactNative Added setChildren() function 2015-12-15 06:56:31 -08:00
Sample
Settings
Storage
StyleSheet
Text
Utilities Added setChildren() function 2015-12-15 06:56:31 -08:00
Vibration
WebSocket Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
react-native add Clipboard component for ios and android 2015-12-09 10:04:21 -08:00
vendor
Promise.js