xamarin/Xamarin.Forms

[Bug] Performance issue with ItemSizingStrategy on CollectionView

Aperta

#8314 aperta il 30 ott 2019

 (3 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/collectionviewa/performancehelp wantedinactivet/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Collection view does not add a default ItemSizingStrategy which defaults to MeasureAll.

This causes a major performance hit when using the GridLayout. With 100 items it adds a good 5 seconds to loading. It should default to MeasureFirstItem

Steps to Reproduce

Expected Behavior

Actual Behavior

Basic Information

  • Version with issue:
  • Last known good version:
  • IDE:
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

Reproduction Link

Guida contributor