SWT Tree widget memory usage [message #460421] |
Thu, 25 August 2005 17:39 |
Eclipse User |
|
|
|
Originally posted by: nospam.spam.com
Does anyone know any tricks to reduce the memory footprint of a Tree
widget that has several thousand TreeItems. Based on admittedly
imprecise tests using top to view memory usage, I see the Tree widget
consuming around twice as much memory as the data it is meant to view.
Thanks,
Steve
|
|
|
|
Re: SWT Tree widget memory usage [message #460452 is a reply to message #460443] |
Fri, 26 August 2005 21:30 |
Eclipse User |
|
|
|
Originally posted by: nospam.spam.com
In the toy example I used to test the performance and memory footprint,
no. However, we first noticed the memory and performance problems when
trying to view fully expanded trees (where children were lazily
created). In my tests, I was assuming the footprint for a Tree with
several thousand childless nodes was at least as large as that of a
fully expanded tree with same number of nodes with arbitrary
parent/child relationships.
Steve Northover wrote:
> I'm assuming that you are lazily creating subitems when the branch is
> expanded, no? If not, that will reduce memory.
>
|
|
|
|
Re: SWT Tree widget memory usage [message #460488 is a reply to message #460478] |
Mon, 29 August 2005 22:30 |
Eclipse User |
|
|
|
Originally posted by: nospam.spam.com
Done. Bug #108327.
Steve Northover wrote:
> Can you please enter a bug report with a benchmark? Thanks.
>
> "Steven Farago" <nospam@spam.com> wrote in message
> news:deo1ld$6qv$1@news.eclipse.org...
>
>>In the toy example I used to test the performance and memory footprint,
>>no. However, we first noticed the memory and performance problems when
>>trying to view fully expanded trees (where children were lazily
>>created). In my tests, I was assuming the footprint for a Tree with
>>several thousand childless nodes was at least as large as that of a
>>fully expanded tree with same number of nodes with arbitrary
>>parent/child relationships.
>>
>>
>>Steve Northover wrote:
>>
>>>I'm assuming that you are lazily creating subitems when the branch is
>>>expanded, no? If not, that will reduce memory.
>>>
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03411 seconds