Performance loading items

Hi,

I have a sflistview where I load items with images.

I use ffimageloading. But it's long to load in the listview.

The longest is when I use load more.

I use async method but my screen is freezing some seconds because it loads the new items.

To load my new items I use. I tried begininit but njothing changes.

 Device.BeginInvokeOnMainThread(async () =>
                             {
                                // ListPlace.DataSource.BeginInit();
                                 ps.ForEach(h => Places.Add(h));
                                // ListPlace.DataSource.EndInit();
                                 await MapValue.AnimateCamera(newBoundsArea, TimeSpan.FromSeconds(3));
                             });

How can I improve the perfomrance?

1 Reply

LN Lakshmi Natarajan Syncfusion Team September 9, 2020 05:53 AM UTC

Hi Alexis, 
 
Thank you for using Syncfusion products. 
 
We have checked the reported query “Performance loading items” from our end. We would like to inform you that we have checked the reported scenario with LoadMore in SfListView and we are unable to reproduce the same at our side. We have attached the tested sample and video in the following link, 
 
 
Could you please check our sample and let us know if you still facing the same issue? If not, please modify our sample to reproduce the issue and revert us back with the following details, 
  • Share data population code snippets
  • Share LoadMoreCommand code snippets
  • Share ListView templates
  • Share device configuration details
  • Share issue reproducing video
 
Meanwhile, we would like to inform you that if you are retrieving data from the webservice at runtime, it will take time to retrieve data from the online server. So, we suggest you to populate data on compile time and store it in local, then you can retrieve the data from the local on LoadMore command which reduces the retrieving time and improves the performance. 
 
You can also refer to our online documentation regarding the same from the following link, 
 
Lakshmi Natarajan 
 


Loader.
Up arrow icon