Performance issue?

Mar 6, 2012 at 6:05 PM

Hi

Im not really sure where the bleeding is, but I am suspecting the observableObject or the observableCollection.

I have a class that holds a list of type observableCollection which holds Observable objects

Class document

ObservableCollection Records<Record>

 

public class Record : ObservableObject

 

when I have bound to my document.Records list and wants to add 1000 new records in a loop I get huge performance issues. Can anyone tell me that Im doing something obvious wrong?

 

 

 

Coordinator
Mar 6, 2012 at 6:22 PM
Hi,

Is your collection bound to the UI before you start filling your objects? Are you using bindings with converters?

Cheers
Laurent

Sent from my Windows Phone

From: genvej
Sent: 06.03.2012 20:06
To: laurent@galasoft.ch
Subject: Performance issue? [mvvmlight:347546]

From: genvej

Hi

Im not really sure where the bleeding is, but I am suspecting the observableObject or the observableCollection.

I have a class that holds a list of type observableCollection which holds Observable objects

Class document

ObservableCollection Records<Record>

public class Record : ObservableObject

when I have bound to my document.Records list and wants to add 1000 new records in a loop I get huge performance issues. Can anyone tell me that Im doing something obvious wrong?

Mar 6, 2012 at 6:57 PM

Yes... my collection is bound to UI when filling objects. If that is a problem is there a way to unbound while looping??

 I have no converters to speak of.