Xamarin.forms: [Enhancement] improve collectionview performance of scrolling

Created on 20 Jul 2020  路  5Comments  路  Source: xamarin/Xamarin.Forms

When CollectionView default instance Scrolling ,it is choppy .
I found some one has been improve this control via DataTemplateSelector and Mono Nursery Size
Please see it here:
https://codetraveler.io/2020/07/12/improving-collectionview-scrolling/?utm_campaign=Weekly%2BXamarin&utm_medium=email&utm_source=Weekly_Xamarin_268
I think it is possible to improve the collectionview performance of scrolling.
Thanks.

collectionview performance high impact bug

Most helpful comment

Adding @roubachof's investigation demonstrating how the GC continues to grow as CollectionView scrolls on Android: https://www.sharpnado.com/gittrends-lags/

All 5 comments

The performance can be improved by either removing the Bindings or using compiled bindings & the Nursery Size Setting on Android depends on the App, so this has nothing to do with CollectionView

@ValonK Maybe team could update the Microsoft Documents of CollectionView about use these settings for performance.

Adding @roubachof's investigation demonstrating how the GC continues to grow as CollectionView scrolls on Android: https://www.sharpnado.com/gittrends-lags/

I've just tried switching over from ListView to CollectionView and scrolling performance is atrocious.

The performance can be improved by either removing the Bindings or using compiled bindings & the Nursery Size Setting on Android depends on the App, so this has nothing to do with CollectionView

I've switched the layouts to not have bindings in the datatemplates as per the example in https://codetraveler.io/2020/07/12/improving-collectionview-scrolling.
It is still unusable... the old list view works considerably better.

Was this page helpful?
0 / 5 - 0 ratings