react-native/Libraries/Utilities
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
..
__mocks__ [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
__tests__ Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
differ [ReactNative] Fix warnings w/h => width/height 2015-05-02 10:22:59 -08:00
AlertIOS.js Add secure and login-password types to AlertIOS. 2015-11-30 19:51:41 -08:00
BackAndroid.android.js add docs to BackAndroid so they show up in the website 2015-09-17 17:20:32 -07:00
BackAndroid.ios.js RN: Remove BackAndroid Warning 2015-11-12 13:24:27 -08:00
CPUProfiler.js Add NativeProfiling module that uses RN nativeProfiler or console.profile 2015-11-27 04:44:25 -08:00
CSSVarConfig.js [ReactNative] OSS JSNavigationStack w/ Examples 2015-03-24 09:39:40 -08:00
Dimensions.js Wrapped UIManager native module for better abstraction 2015-11-27 07:00:32 -08:00
ErrorUtils.js [Cosmetic] Fixing comment typo 2015-06-02 20:23:34 -08:00
MatrixMath.js Add rotateX and rotateY transforms to Android Views . 2015-12-09 16:09:30 -08:00
MessageQueue.js Rename BridgeProfiling to Systrace for consistency 2015-12-11 03:53:19 -08:00
PerformanceLogger.js Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
PixelRatio.js [ReactNative] PixelRatio docs 2015-07-27 09:40:08 -08:00
Platform.android.js Release React Native for Android 2015-09-14 18:13:39 +01:00
Platform.ios.js Flowify Library/Utilities/ 2015-03-23 16:47:26 -08:00
RCTLog.js Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
RCTRenderingPerf.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
Systrace.js BridgeProfiler: add sync Relay methods 2015-12-11 11:50:30 -08:00
UIManager.js Added setChildren() function 2015-12-15 06:56:31 -08:00
buildStyleInterpolator.js Make Style Interpolator Function Generation Lazy 2015-11-23 14:20:29 -08:00
createStrictShapeTypeChecker.js fix library/utility lint warnings 2015-11-30 16:15:30 -08:00
cssVar.js [ReactNative] OSS JSNavigationStack w/ Examples 2015-03-24 09:39:40 -08:00
deepFreezeAndThrowOnMutationInDev.js Flowify Library/Utilities/ 2015-03-23 16:47:26 -08:00
dismissKeyboard.js [ReactNative] Sync [react_native] Fix keyboard behavior for android 2015-08-14 02:58:37 -08:00
groupByEveryN.js Flowify Library/Utilities/ 2015-03-23 16:47:26 -08:00
logError.js Flowify Library/Utilities/ 2015-03-23 16:47:26 -08:00
mapWithSeparator.js select up and down the inspector hierarchy 2015-06-04 10:18:56 -08:00
mergeFast.js Fix typo 2015-08-06 20:22:24 -08:00
mergeIntoFast.js Flowify Library/Utilities/ 2015-03-23 16:47:26 -08:00
stringifySafe.js [ReactNative] improve console logging a little bit 2015-05-04 18:57:03 -08:00
truncate.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00