Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » GridViewer - Resources
GridViewer - Resources [message #59341] Wed, 24 September 2008 08:24 Go to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 98
Registered: July 2009
Member
Hello there.

We are just investigating the resource usage of the GridViewer. And our
test case uses 400k records. Ok now somebody could say, who the hell
needs 400k records at all? Well I also would say thats insane, but
unfortunately the customers requires it.

When displaying 400k records this single table uses about 700MB heap
space. So with in an RCP application thats not a valid approach, since
more than one editor can be opened.

Is there a way ti get the GridViewer to use less resources, eg with
paging or even better a sliding window as the CompositeTable does,
because some GridViewer-features are very cool, and it would be a pitty
if it can't be used in large database applications.

Regards,

Peter
Re: GridViewer - Resources [message #59441 is a reply to message #59341] Wed, 24 September 2008 21:34 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi Peter,

Well the current Grid-Design is that a GridItem for every row you show
is created. So you have 400.000 Items if you want or not :-(. The
question now is the problem the data that is stored in the GridItem
(e.g. the many many strings, ....)?

Does the Grid also consume so many resources if you return and empty
string for all Labels? If it doesn't then Grid since about a week
provides a cool new feature where it informs you about the change of the
visible cells (the initial intention of this feature was to manage
Image-Handles but it could be used to clean your items string data).

The new features are part of an extra branch named "header_footer" in CVS.

Tom

Peter Pfeifer schrieb:
> Hello there.
>
> We are just investigating the resource usage of the GridViewer. And our
> test case uses 400k records. Ok now somebody could say, who the hell
> needs 400k records at all? Well I also would say thats insane, but
> unfortunately the customers requires it.
>
> When displaying 400k records this single table uses about 700MB heap
> space. So with in an RCP application thats not a valid approach, since
> more than one editor can be opened.
>
> Is there a way ti get the GridViewer to use less resources, eg with
> paging or even better a sliding window as the CompositeTable does,
> because some GridViewer-features are very cool, and it would be a pitty
> if it can't be used in large database applications.
>
> Regards,
>
> Peter


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: GridViewer - Resources [message #59492 is a reply to message #59441] Fri, 26 September 2008 07:17 Go to previous messageGo to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 98
Registered: July 2009
Member
Hi Tom,

Would it be also possible to remove the propertychange support and all
the things needed for databinding, when the items aren't displayed?

This would also help to save a lot of resources...

Thx,

Peter

Tom Schindl schrieb:
> Hi Peter,
>
> Well the current Grid-Design is that a GridItem for every row you show
> is created. So you have 400.000 Items if you want or not :-(. The
> question now is the problem the data that is stored in the GridItem
> (e.g. the many many strings, ....)?
>
> Does the Grid also consume so many resources if you return and empty
> string for all Labels? If it doesn't then Grid since about a week
> provides a cool new feature where it informs you about the change of the
> visible cells (the initial intention of this feature was to manage
> Image-Handles but it could be used to clean your items string data).
>
> The new features are part of an extra branch named "header_footer" in CVS.
>
> Tom
>
> Peter Pfeifer schrieb:
>> Hello there.
>>
>> We are just investigating the resource usage of the GridViewer. And our
>> test case uses 400k records. Ok now somebody could say, who the hell
>> needs 400k records at all? Well I also would say thats insane, but
>> unfortunately the customers requires it.
>>
>> When displaying 400k records this single table uses about 700MB heap
>> space. So with in an RCP application thats not a valid approach, since
>> more than one editor can be opened.
>>
>> Is there a way ti get the GridViewer to use less resources, eg with
>> paging or even better a sliding window as the CompositeTable does,
>> because some GridViewer-features are very cool, and it would be a pitty
>> if it can't be used in large database applications.
>>
>> Regards,
>>
>> Peter
>
>
Re: GridViewer - Resources [message #59612 is a reply to message #59492] Sun, 28 September 2008 15:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Maybe use the POJOObservables instead? If you always go from View to
Model it is not needed!

Tom

Peter Pfeifer schrieb:
> Hi Tom,
>
> Would it be also possible to remove the propertychange support and all
> the things needed for databinding, when the items aren't displayed?
>
> This would also help to save a lot of resources...
>
> Thx,
>
> Peter
>
> Tom Schindl schrieb:
>> Hi Peter,
>>
>> Well the current Grid-Design is that a GridItem for every row you show
>> is created. So you have 400.000 Items if you want or not :-(. The
>> question now is the problem the data that is stored in the GridItem
>> (e.g. the many many strings, ....)?
>>
>> Does the Grid also consume so many resources if you return and empty
>> string for all Labels? If it doesn't then Grid since about a week
>> provides a cool new feature where it informs you about the change of the
>> visible cells (the initial intention of this feature was to manage
>> Image-Handles but it could be used to clean your items string data).
>>
>> The new features are part of an extra branch named "header_footer" in
>> CVS.
>>
>> Tom
>>
>> Peter Pfeifer schrieb:
>>> Hello there.
>>>
>>> We are just investigating the resource usage of the GridViewer. And our
>>> test case uses 400k records. Ok now somebody could say, who the hell
>>> needs 400k records at all? Well I also would say thats insane, but
>>> unfortunately the customers requires it.
>>>
>>> When displaying 400k records this single table uses about 700MB heap
>>> space. So with in an RCP application thats not a valid approach, since
>>> more than one editor can be opened.
>>>
>>> Is there a way ti get the GridViewer to use less resources, eg with
>>> paging or even better a sliding window as the CompositeTable does,
>>> because some GridViewer-features are very cool, and it would be a pitty
>>> if it can't be used in large database applications.
>>>
>>> Regards,
>>>
>>> Peter
>>
>>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: GridViewer - Resources [message #59636 is a reply to message #59612] Mon, 29 September 2008 10:31 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I think you can have both the only thing you need to do is to use a
special modified list as input to the observable map and not the one
you'll receive from the content provider.

This list has to be modified depending informations you receive from the
Grid with its new API and when a new value row is shown also call
viewer#update(). This way you only have PropertyChangeListener for the
currently active rows.

I'll try to create an example implementation for you when I have time.

Tom

Tom Schindl schrieb:
> Maybe use the POJOObservables instead? If you always go from View to
> Model it is not needed!
>
> Tom
>
> Peter Pfeifer schrieb:
>> Hi Tom,
>>
>> Would it be also possible to remove the propertychange support and all
>> the things needed for databinding, when the items aren't displayed?
>>
>> This would also help to save a lot of resources...
>>
>> Thx,
>>
>> Peter
>>
>> Tom Schindl schrieb:
>>> Hi Peter,
>>>
>>> Well the current Grid-Design is that a GridItem for every row you show
>>> is created. So you have 400.000 Items if you want or not :-(. The
>>> question now is the problem the data that is stored in the GridItem
>>> (e.g. the many many strings, ....)?
>>>
>>> Does the Grid also consume so many resources if you return and empty
>>> string for all Labels? If it doesn't then Grid since about a week
>>> provides a cool new feature where it informs you about the change of the
>>> visible cells (the initial intention of this feature was to manage
>>> Image-Handles but it could be used to clean your items string data).
>>>
>>> The new features are part of an extra branch named "header_footer" in
>>> CVS.
>>>
>>> Tom
>>>
>>> Peter Pfeifer schrieb:
>>>> Hello there.
>>>>
>>>> We are just investigating the resource usage of the GridViewer. And our
>>>> test case uses 400k records. Ok now somebody could say, who the hell
>>>> needs 400k records at all? Well I also would say thats insane, but
>>>> unfortunately the customers requires it.
>>>>
>>>> When displaying 400k records this single table uses about 700MB heap
>>>> space. So with in an RCP application thats not a valid approach, since
>>>> more than one editor can be opened.
>>>>
>>>> Is there a way ti get the GridViewer to use less resources, eg with
>>>> paging or even better a sliding window as the CompositeTable does,
>>>> because some GridViewer-features are very cool, and it would be a pitty
>>>> if it can't be used in large database applications.
>>>>
>>>> Regards,
>>>>
>>>> Peter
>>>
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: GridViewer - Resources [message #59755 is a reply to message #59636] Tue, 30 September 2008 05:04 Go to previous message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 98
Registered: July 2009
Member
Hi Tom.

Thank you very much for your answer. Take your time, i'll wait for the
example implementation.

Greeting to Tyrol.

Peter


Tom Schindl schrieb:
> Hi,
>
> I think you can have both the only thing you need to do is to use a
> special modified list as input to the observable map and not the one
> you'll receive from the content provider.
>
> This list has to be modified depending informations you receive from the
> Grid with its new API and when a new value row is shown also call
> viewer#update(). This way you only have PropertyChangeListener for the
> currently active rows.
>
> I'll try to create an example implementation for you when I have time.
>
> Tom
>
> Tom Schindl schrieb:
>> Maybe use the POJOObservables instead? If you always go from View to
>> Model it is not needed!
>>
>> Tom
>>
>> Peter Pfeifer schrieb:
>>> Hi Tom,
>>>
>>> Would it be also possible to remove the propertychange support and all
>>> the things needed for databinding, when the items aren't displayed?
>>>
>>> This would also help to save a lot of resources...
>>>
>>> Thx,
>>>
>>> Peter
>>>
>>> Tom Schindl schrieb:
>>>> Hi Peter,
>>>>
>>>> Well the current Grid-Design is that a GridItem for every row you show
>>>> is created. So you have 400.000 Items if you want or not :-(. The
>>>> question now is the problem the data that is stored in the GridItem
>>>> (e.g. the many many strings, ....)?
>>>>
>>>> Does the Grid also consume so many resources if you return and empty
>>>> string for all Labels? If it doesn't then Grid since about a week
>>>> provides a cool new feature where it informs you about the change of the
>>>> visible cells (the initial intention of this feature was to manage
>>>> Image-Handles but it could be used to clean your items string data).
>>>>
>>>> The new features are part of an extra branch named "header_footer" in
>>>> CVS.
>>>>
>>>> Tom
>>>>
>>>> Peter Pfeifer schrieb:
>>>>> Hello there.
>>>>>
>>>>> We are just investigating the resource usage of the GridViewer. And our
>>>>> test case uses 400k records. Ok now somebody could say, who the hell
>>>>> needs 400k records at all? Well I also would say thats insane, but
>>>>> unfortunately the customers requires it.
>>>>>
>>>>> When displaying 400k records this single table uses about 700MB heap
>>>>> space. So with in an RCP application thats not a valid approach, since
>>>>> more than one editor can be opened.
>>>>>
>>>>> Is there a way ti get the GridViewer to use less resources, eg with
>>>>> paging or even better a sliding window as the CompositeTable does,
>>>>> because some GridViewer-features are very cool, and it would be a pitty
>>>>> if it can't be used in large database applications.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Peter
>>
>
>
Re: GridViewer - Resources [message #592334 is a reply to message #59341] Wed, 24 September 2008 21:34 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi Peter,

Well the current Grid-Design is that a GridItem for every row you show
is created. So you have 400.000 Items if you want or not :-(. The
question now is the problem the data that is stored in the GridItem
(e.g. the many many strings, ....)?

Does the Grid also consume so many resources if you return and empty
string for all Labels? If it doesn't then Grid since about a week
provides a cool new feature where it informs you about the change of the
visible cells (the initial intention of this feature was to manage
Image-Handles but it could be used to clean your items string data).

The new features are part of an extra branch named "header_footer" in CVS.

Tom

Peter Pfeifer schrieb:
> Hello there.
>
> We are just investigating the resource usage of the GridViewer. And our
> test case uses 400k records. Ok now somebody could say, who the hell
> needs 400k records at all? Well I also would say thats insane, but
> unfortunately the customers requires it.
>
> When displaying 400k records this single table uses about 700MB heap
> space. So with in an RCP application thats not a valid approach, since
> more than one editor can be opened.
>
> Is there a way ti get the GridViewer to use less resources, eg with
> paging or even better a sliding window as the CompositeTable does,
> because some GridViewer-features are very cool, and it would be a pitty
> if it can't be used in large database applications.
>
> Regards,
>
> Peter


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: GridViewer - Resources [message #592349 is a reply to message #59441] Fri, 26 September 2008 07:17 Go to previous message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 98
Registered: July 2009
Member
Hi Tom,

Would it be also possible to remove the propertychange support and all
the things needed for databinding, when the items aren't displayed?

This would also help to save a lot of resources...

Thx,

Peter

Tom Schindl schrieb:
> Hi Peter,
>
> Well the current Grid-Design is that a GridItem for every row you show
> is created. So you have 400.000 Items if you want or not :-(. The
> question now is the problem the data that is stored in the GridItem
> (e.g. the many many strings, ....)?
>
> Does the Grid also consume so many resources if you return and empty
> string for all Labels? If it doesn't then Grid since about a week
> provides a cool new feature where it informs you about the change of the
> visible cells (the initial intention of this feature was to manage
> Image-Handles but it could be used to clean your items string data).
>
> The new features are part of an extra branch named "header_footer" in CVS.
>
> Tom
>
> Peter Pfeifer schrieb:
>> Hello there.
>>
>> We are just investigating the resource usage of the GridViewer. And our
>> test case uses 400k records. Ok now somebody could say, who the hell
>> needs 400k records at all? Well I also would say thats insane, but
>> unfortunately the customers requires it.
>>
>> When displaying 400k records this single table uses about 700MB heap
>> space. So with in an RCP application thats not a valid approach, since
>> more than one editor can be opened.
>>
>> Is there a way ti get the GridViewer to use less resources, eg with
>> paging or even better a sliding window as the CompositeTable does,
>> because some GridViewer-features are very cool, and it would be a pitty
>> if it can't be used in large database applications.
>>
>> Regards,
>>
>> Peter
>
>
Re: GridViewer - Resources [message #592390 is a reply to message #59492] Sun, 28 September 2008 15:17 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Maybe use the POJOObservables instead? If you always go from View to
Model it is not needed!

Tom

Peter Pfeifer schrieb:
> Hi Tom,
>
> Would it be also possible to remove the propertychange support and all
> the things needed for databinding, when the items aren't displayed?
>
> This would also help to save a lot of resources...
>
> Thx,
>
> Peter
>
> Tom Schindl schrieb:
>> Hi Peter,
>>
>> Well the current Grid-Design is that a GridItem for every row you show
>> is created. So you have 400.000 Items if you want or not :-(. The
>> question now is the problem the data that is stored in the GridItem
>> (e.g. the many many strings, ....)?
>>
>> Does the Grid also consume so many resources if you return and empty
>> string for all Labels? If it doesn't then Grid since about a week
>> provides a cool new feature where it informs you about the change of the
>> visible cells (the initial intention of this feature was to manage
>> Image-Handles but it could be used to clean your items string data).
>>
>> The new features are part of an extra branch named "header_footer" in
>> CVS.
>>
>> Tom
>>
>> Peter Pfeifer schrieb:
>>> Hello there.
>>>
>>> We are just investigating the resource usage of the GridViewer. And our
>>> test case uses 400k records. Ok now somebody could say, who the hell
>>> needs 400k records at all? Well I also would say thats insane, but
>>> unfortunately the customers requires it.
>>>
>>> When displaying 400k records this single table uses about 700MB heap
>>> space. So with in an RCP application thats not a valid approach, since
>>> more than one editor can be opened.
>>>
>>> Is there a way ti get the GridViewer to use less resources, eg with
>>> paging or even better a sliding window as the CompositeTable does,
>>> because some GridViewer-features are very cool, and it would be a pitty
>>> if it can't be used in large database applications.
>>>
>>> Regards,
>>>
>>> Peter
>>
>>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: GridViewer - Resources [message #592398 is a reply to message #59612] Mon, 29 September 2008 10:31 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I think you can have both the only thing you need to do is to use a
special modified list as input to the observable map and not the one
you'll receive from the content provider.

This list has to be modified depending informations you receive from the
Grid with its new API and when a new value row is shown also call
viewer#update(). This way you only have PropertyChangeListener for the
currently active rows.

I'll try to create an example implementation for you when I have time.

Tom

Tom Schindl schrieb:
> Maybe use the POJOObservables instead? If you always go from View to
> Model it is not needed!
>
> Tom
>
> Peter Pfeifer schrieb:
>> Hi Tom,
>>
>> Would it be also possible to remove the propertychange support and all
>> the things needed for databinding, when the items aren't displayed?
>>
>> This would also help to save a lot of resources...
>>
>> Thx,
>>
>> Peter
>>
>> Tom Schindl schrieb:
>>> Hi Peter,
>>>
>>> Well the current Grid-Design is that a GridItem for every row you show
>>> is created. So you have 400.000 Items if you want or not :-(. The
>>> question now is the problem the data that is stored in the GridItem
>>> (e.g. the many many strings, ....)?
>>>
>>> Does the Grid also consume so many resources if you return and empty
>>> string for all Labels? If it doesn't then Grid since about a week
>>> provides a cool new feature where it informs you about the change of the
>>> visible cells (the initial intention of this feature was to manage
>>> Image-Handles but it could be used to clean your items string data).
>>>
>>> The new features are part of an extra branch named "header_footer" in
>>> CVS.
>>>
>>> Tom
>>>
>>> Peter Pfeifer schrieb:
>>>> Hello there.
>>>>
>>>> We are just investigating the resource usage of the GridViewer. And our
>>>> test case uses 400k records. Ok now somebody could say, who the hell
>>>> needs 400k records at all? Well I also would say thats insane, but
>>>> unfortunately the customers requires it.
>>>>
>>>> When displaying 400k records this single table uses about 700MB heap
>>>> space. So with in an RCP application thats not a valid approach, since
>>>> more than one editor can be opened.
>>>>
>>>> Is there a way ti get the GridViewer to use less resources, eg with
>>>> paging or even better a sliding window as the CompositeTable does,
>>>> because some GridViewer-features are very cool, and it would be a pitty
>>>> if it can't be used in large database applications.
>>>>
>>>> Regards,
>>>>
>>>> Peter
>>>
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: GridViewer - Resources [message #592450 is a reply to message #59636] Tue, 30 September 2008 05:04 Go to previous message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 98
Registered: July 2009
Member
Hi Tom.

Thank you very much for your answer. Take your time, i'll wait for the
example implementation.

Greeting to Tyrol.

Peter


Tom Schindl schrieb:
> Hi,
>
> I think you can have both the only thing you need to do is to use a
> special modified list as input to the observable map and not the one
> you'll receive from the content provider.
>
> This list has to be modified depending informations you receive from the
> Grid with its new API and when a new value row is shown also call
> viewer#update(). This way you only have PropertyChangeListener for the
> currently active rows.
>
> I'll try to create an example implementation for you when I have time.
>
> Tom
>
> Tom Schindl schrieb:
>> Maybe use the POJOObservables instead? If you always go from View to
>> Model it is not needed!
>>
>> Tom
>>
>> Peter Pfeifer schrieb:
>>> Hi Tom,
>>>
>>> Would it be also possible to remove the propertychange support and all
>>> the things needed for databinding, when the items aren't displayed?
>>>
>>> This would also help to save a lot of resources...
>>>
>>> Thx,
>>>
>>> Peter
>>>
>>> Tom Schindl schrieb:
>>>> Hi Peter,
>>>>
>>>> Well the current Grid-Design is that a GridItem for every row you show
>>>> is created. So you have 400.000 Items if you want or not :-(. The
>>>> question now is the problem the data that is stored in the GridItem
>>>> (e.g. the many many strings, ....)?
>>>>
>>>> Does the Grid also consume so many resources if you return and empty
>>>> string for all Labels? If it doesn't then Grid since about a week
>>>> provides a cool new feature where it informs you about the change of the
>>>> visible cells (the initial intention of this feature was to manage
>>>> Image-Handles but it could be used to clean your items string data).
>>>>
>>>> The new features are part of an extra branch named "header_footer" in
>>>> CVS.
>>>>
>>>> Tom
>>>>
>>>> Peter Pfeifer schrieb:
>>>>> Hello there.
>>>>>
>>>>> We are just investigating the resource usage of the GridViewer. And our
>>>>> test case uses 400k records. Ok now somebody could say, who the hell
>>>>> needs 400k records at all? Well I also would say thats insane, but
>>>>> unfortunately the customers requires it.
>>>>>
>>>>> When displaying 400k records this single table uses about 700MB heap
>>>>> space. So with in an RCP application thats not a valid approach, since
>>>>> more than one editor can be opened.
>>>>>
>>>>> Is there a way ti get the GridViewer to use less resources, eg with
>>>>> paging or even better a sliding window as the CompositeTable does,
>>>>> because some GridViewer-features are very cool, and it would be a pitty
>>>>> if it can't be used in large database applications.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Peter
>>
>
>
Previous Topic:Grid - how do you provide image for row header?
Next Topic:[Grid] ComboBoxCellEditor doesn't return focus to the Grid
Goto Forum:
  


Current Time: Wed Nov 06 02:36:00 GMT 2024

Powered by FUDForum. Page generated in 0.05683 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top