Re: DataBindig - performance problems when binding large lists [message #552315] |
Wed, 11 August 2010 16:50 |
Benjamin Muskalla Messages: 338 Registered: July 2009 |
Senior Member |
|
|
Dana,
as mentioned, I think this fits much better to the platform.jface
newsgroup (cc'ed the other newsgroup).
Regards,
Ben
Dana wrote:
> Hi all,
>
> I am using databinding to bind <multi-selection in viewer> to <a
> collection property from a bean>.
>
> -ViewersObservables.observeMultiSelection() to track the current
> selection of the given viewer
>
> -BeansObservables.observeList() to bind a control to a Collection
> property on a bean.
>
> In order to synchronize those two lists we are calling the method
> bindList() from the eclipse API (org.eclipse.core.databinding.DataBinding).
>
> This works fine but we have some performance problems when we are
> dealing with large lists (around 600 elements in the collection from the
> bean -> bindList() call takes about 46 seconds).
>
> IObservableList observeMultiSelection =
> ViewersObservables.observeMultiSelection(selectionProvider);
> IObservableList observeValue =
> BeansObservables.observeList(object, propertyName);
> Binding bindValue = getBindingContext().bindList(observeMultiSelection
> , observeValue , null, null)
>
> Is this a normal behavior?
>
> Thanks in advance,
>
--
Benjamin Muskalla | EclipseSource Karlsruhe
Need professional support for RAP and RCP?
Go to: http://eclipsesource.com/support
Twitter : @bmuskalla
Blog : http://eclipsesource.com/blogs/tag/rap/
|
|
|
Re: DataBindig - performance problems when binding large lists [message #552415 is a reply to message #552315] |
Thu, 12 August 2010 07:28 |
Matthew Hall Messages: 368 Registered: July 2009 |
Senior Member |
|
|
Holy cow, no that should not be normal behavior. Do you have a
standalone test case we can use to profile that? Does your view element
have a semi-expensive equals() method?
FYI the UpdateListStrategies are optional arguments now so you can leave
them off instead of typing ", null, null" at the end of all your bindings.
If you can post a bug report along with some guidelines to reproduce
that performance behavior, we can take a look at it and see what's going on.
Matthew
On 08/11/2010 10:50 AM, Benjamin Muskalla wrote:
> Dana,
>
> as mentioned, I think this fits much better to the platform.jface
> newsgroup (cc'ed the other newsgroup).
>
> Regards,
> Ben
>
> Dana wrote:
>> Hi all,
>>
>> I am using databinding to bind <multi-selection in viewer> to <a
>> collection property from a bean>.
>>
>> -ViewersObservables.observeMultiSelection() to track the current
>> selection of the given viewer
>>
>> -BeansObservables.observeList() to bind a control to a Collection
>> property on a bean.
>>
>> In order to synchronize those two lists we are calling the method
>> bindList() from the eclipse API
>> (org.eclipse.core.databinding.DataBinding).
>>
>> This works fine but we have some performance problems when we are
>> dealing with large lists (around 600 elements in the collection from
>> the bean -> bindList() call takes about 46 seconds).
>>
>> IObservableList observeMultiSelection =
>> ViewersObservables.observeMultiSelection(selectionProvider);
>> IObservableList observeValue = BeansObservables.observeList(object,
>> propertyName);
>> Binding bindValue = getBindingContext().bindList(observeMultiSelection
>> , observeValue , null, null)
>>
>> Is this a normal behavior?
>>
>> Thanks in advance,
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02463 seconds