react-native/React/Views
Nick Lockwood 0c61b49f0a Improved RCTCache performance + fixed border color crash
Summary:
RCTCache had really bad insertion performance when the cache was full due to having to LRU-sort the entries. This was making color
animations very slow.

I've fixed this in two ways:

1) by removing the sort and doing a linear search to remove old entries, which changes insertion perf to O(n) in the worst case instead of O(n log n) or even (n2).

2) by reducing the size of the color cache to 128 from 1024, which should be fine for normal use, without penalising animation performance.

Separately, border colors were not being retained, which caused crashes when the color cache was cleared. I've fixed that by retaining the border colors inside RCTView.
2015-07-14 04:56:25 -08:00
..
RCTActivityIndicatorViewManager.h Improved RCTActivityIndicatorView and fixed some flow errors 2015-04-26 02:17:13 -08:00
RCTActivityIndicatorViewManager.m Improved RCTActivityIndicatorView and fixed some flow errors 2015-04-26 02:17:13 -08:00
RCTAnimationType.h [LayoutAnimation] RCTAnimationTypeKeyboard 2015-06-25 09:17:01 -08:00
RCTAutoInsetsProtocol.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTBorderDrawing.h Implemented fast path for same borders/radii 2015-05-28 09:16:44 -08:00
RCTBorderDrawing.m Implemented fast path for same borders/radii 2015-05-28 09:16:44 -08:00
RCTConvert+CoreLocation.h [MapView] Support for annotation callouts, annotation press, callout presses and pin animation 2015-06-25 09:15:21 -08:00
RCTConvert+CoreLocation.m [MapView] Support for annotation callouts, annotation press, callout presses and pin animation 2015-06-25 09:15:21 -08:00
RCTConvert+MapKit.h [MapView] Support for annotation callouts, annotation press, callout presses and pin animation 2015-06-25 09:15:21 -08:00
RCTConvert+MapKit.m [MapView] Support for annotation callouts, annotation press, callout presses and pin animation 2015-06-25 09:15:21 -08:00
RCTDatePickerManager.h Removed deprecated RCT_EXPORT + code paths 2015-06-05 09:58:25 -08:00
RCTDatePickerManager.m Removed deprecated RCT_EXPORT + code paths 2015-06-05 09:58:25 -08:00
RCTMap.h [MapView] Support for annotation callouts, annotation press, callout presses and pin animation 2015-06-25 09:15:21 -08:00
RCTMap.m [MapView] Support for annotation callouts, annotation press, callout presses and pin animation 2015-06-25 09:15:21 -08:00
RCTMapManager.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTMapManager.m Migrate unit tests from FBReactKitModules to FBReactKit 2015-07-07 16:39:35 -08:00
RCTNavItem.h [NavigatorIOS] Allow translucent on NavigatorIOS 2015-06-26 07:17:54 -08:00
RCTNavItem.m [NavigatorIOS] Fixes #1268 - Bug causing the leftButtonIcon to not appear 2015-05-14 09:01:57 -08:00
RCTNavItemManager.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTNavItemManager.m [NavigatorIOS] Allow translucent on NavigatorIOS 2015-06-26 07:17:54 -08:00
RCTNavigator.h [ReactNative] Use a single DisplayLink held by the bridge 2015-04-15 07:07:48 -08:00
RCTNavigator.m Revert "[ReactNative] Fix crash when reload during profile" 2015-07-07 23:37:07 -08:00
RCTNavigatorManager.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTNavigatorManager.m Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTPicker.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTPicker.m Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTPickerManager.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTPickerManager.m Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTPointerEvents.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTProgressViewManager.h Added ProgressViewIOS 2015-06-03 09:49:35 -08:00
RCTProgressViewManager.m Added ProgressViewIOS 2015-06-03 09:49:35 -08:00
RCTScrollView.h [ReactNative] Implement proper event coalescing 2015-05-27 20:41:20 -08:00
RCTScrollView.m [rn] Keep native ListView child frames in sync on JS wrapper 2015-07-07 07:40:56 -08:00
RCTScrollViewManager.h Removed deprecated RCT_EXPORT + code paths 2015-06-05 09:58:25 -08:00
RCTScrollViewManager.m [rn] Keep native ListView child frames in sync on JS wrapper 2015-07-07 07:40:56 -08:00
RCTScrollableProtocol.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTSegmentedControl.h [MapView] Support for annotation callouts, annotation press, callout presses and pin animation 2015-06-25 09:15:21 -08:00
RCTSegmentedControl.m [MapView] Support for annotation callouts, annotation press, callout presses and pin animation 2015-06-25 09:15:21 -08:00
RCTSegmentedControlManager.h Add SegmentedControlIOS 2015-04-29 08:08:45 -08:00
RCTSegmentedControlManager.m Add SegmentedControlIOS 2015-04-29 08:08:45 -08:00
RCTShadowView.h [React Native] Remove layout-only nodes (Take 2!) 2015-07-07 05:06:50 -08:00
RCTShadowView.m [React Native] Update code comments about layout-only view 2015-07-14 02:52:45 -08:00
RCTSlider.h [SliderIOS] Apply value after minimum/maximumValue in order to ensure it is properly set 2015-04-21 11:09:10 -08:00
RCTSlider.m [SliderIOS] Apply value after minimum/maximumValue in order to ensure it is properly set 2015-04-21 11:09:10 -08:00
RCTSliderManager.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTSliderManager.m Add minimumTrackTintColor and maximumTrackTintColor to SliderIOS 2015-04-23 05:57:15 -08:00
RCTSwitch.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTSwitch.m [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTSwitchManager.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTSwitchManager.m [ReactNative] use requireNativeComponent to clean up a bunch of boilerplate 2015-04-21 21:06:48 -08:00
RCTTabBar.h TabBarIOS tintColor 2015-05-26 17:21:36 -08:00
RCTTabBar.m Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTTabBarItem.h [Image] Add scale support for base64-encoded image. 2015-06-25 06:07:42 -08:00
RCTTabBarItem.m [Image] Add scale support for base64-encoded image. 2015-06-25 06:07:42 -08:00
RCTTabBarItemManager.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTTabBarItemManager.m [Image] Add scale support for base64-encoded image. 2015-06-25 06:07:42 -08:00
RCTTabBarManager.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTTabBarManager.m Changed methodQueue to a property 2015-06-19 04:20:39 -08:00
RCTTextDecorationLineType.h <Text> module add textDecoration style attributes 2015-07-07 06:15:20 -08:00
RCTView.h Improved RCTCache performance + fixed border color crash 2015-07-14 04:56:25 -08:00
RCTView.m Improved RCTCache performance + fixed border color crash 2015-07-14 04:56:25 -08:00
RCTViewControllerProtocol.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTViewManager.h Bump .buckversion to 6cdb82cb7493a86c39d0f0dc3c102d0f470f55de. 2015-04-23 08:24:08 -08:00
RCTViewManager.m Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTViewNodeProtocol.h [React Native] Remove layout-only nodes (Take 2!) 2015-07-07 05:06:50 -08:00
RCTWebView.h Rename prop "injectedJavascriptIOS" to "injectedJavaScript 2015-07-07 17:17:22 -08:00
RCTWebView.m Rename prop "injectedJavascriptIOS" to "injectedJavaScript 2015-07-07 17:17:22 -08:00
RCTWebViewManager.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTWebViewManager.m Rename prop "injectedJavascriptIOS" to "injectedJavaScript 2015-07-07 17:17:22 -08:00
RCTWrapperViewController.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTWrapperViewController.m [NavigatorIOS] Allow translucent on NavigatorIOS 2015-06-26 07:17:54 -08:00
UIView+React.h Fixed text background color 2015-05-28 09:31:57 -08:00
UIView+React.m Provide root reactTag to RootComponent and use it to resolve view controllers 2015-06-24 10:20:55 -08:00