diff --git a/README.md b/README.md index 7dcdc9e..e14189c 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,13 @@ The CollectionView is a flexible and performant view for presenting lists of dat In addition to allowing different layouts, the CollectionView has better performance than the ListView, but... how much does it improve the performance?. ![CollectionView](images/collectionviewperf.png) + ![CollectionView Create Renderer](images/collectionviewperf-createrenderer.png) +One of the biggest changes between ListView and CollectionView is the removal of wrapping content in a ViewCell. This allows for significant gains to performance, especially on Android, while remaining familiar to what you’ve done before when using the ListView. + +While the impact on the startup time is not noticeable (is more reduced), can appreciate a noticeable difference in memory consumption. + ### Fast Renderers Traditionally, most of the original control renderers on Android are composed of two views: diff --git a/images/collectionviewperf.png b/images/collectionviewperf.png index 90b6124..a8e2406 100644 Binary files a/images/collectionviewperf.png and b/images/collectionviewperf.png differ diff --git a/src/CollectionView/CollectionView Performance.xlsx b/src/CollectionView/CollectionView Performance.xlsx index 02a89c4..e01726c 100644 Binary files a/src/CollectionView/CollectionView Performance.xlsx and b/src/CollectionView/CollectionView Performance.xlsx differ diff --git a/src/CollectionView/CollectionViewPerformance/CollectionViewPerformance.Android/CollectionViewPerformance.Android.csproj b/src/CollectionView/CollectionViewPerformance/CollectionViewPerformance.Android/CollectionViewPerformance.Android.csproj index 95e7d5c..fe9b6db 100644 --- a/src/CollectionView/CollectionViewPerformance/CollectionViewPerformance.Android/CollectionViewPerformance.Android.csproj +++ b/src/CollectionView/CollectionViewPerformance/CollectionViewPerformance.Android/CollectionViewPerformance.Android.csproj @@ -42,6 +42,8 @@ 4 true false + true + true diff --git a/src/CollectionView/CollectionViewPerformance/CollectionViewPerformance/Views/CollectionPerfView.xaml b/src/CollectionView/CollectionViewPerformance/CollectionViewPerformance/Views/CollectionPerfView.xaml index 33b343d..d40b1d9 100644 --- a/src/CollectionView/CollectionViewPerformance/CollectionViewPerformance/Views/CollectionPerfView.xaml +++ b/src/CollectionView/CollectionViewPerformance/CollectionViewPerformance/Views/CollectionPerfView.xaml @@ -17,7 +17,9 @@ Margin="6"/> + ItemsSource="{Binding Monkeys}" + ItemSizingStrategy="MeasureFirstItem" + SelectionMode="None">