Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Tree widget memory usage
SWT Tree widget memory usage [message #460421] Thu, 25 August 2005 17:39 Go to next message
Eclipse UserFriend
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 #460443 is a reply to message #460421] Fri, 26 August 2005 15:32 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
I'm assuming that you are lazily creating subitems when the branch is
expanded, no? If not, that will reduce memory.

"Steven Farago" <nospam@spam.com> wrote in message
news:dekvpn$h0g$1@news.eclipse.org...
> 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 Go to previous messageGo to next message
Eclipse UserFriend
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 #460478 is a reply to message #460452] Mon, 29 August 2005 18:07 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
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.
> >
Re: SWT Tree widget memory usage [message #460488 is a reply to message #460478] Mon, 29 August 2005 22:30 Go to previous messageGo to next message
Eclipse UserFriend
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.
>>>
>
>
>
Re: SWT Tree widget memory usage [message #460755 is a reply to message #460488] Wed, 07 September 2005 00:36 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Lots of intersting issues in there, some of them involving the VM's.

"Steven Farago" <nospam@spam.com> wrote in message
news:df02av$1fg$1@news.eclipse.org...
> 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.
> >>>
> >
> >
> >
Previous Topic:TabFolder with tabItem at right/left side
Next Topic:Multiple Display instances questions...
Goto Forum:
  


Current Time: Sat Apr 20 03:45:10 GMT 2024

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

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

Back to the top