RE: Size of application is huge



I don't think I do it wrong, but it is my first application with GNOME (always stuck to server code, much 
cleaner). I tried to recompile without -g, but it still uses 317MB. And I put in getchars() after each widget 
was allocated - this shows me that they each time I allocate a notebook or liststore the application grows 
about 8 - 10MB (seen in gnome-system-monitor).

BTW - I use Mandrake 10 if that makes any difference.

/jan

-----Original Message-----
From:   John Cupitt [mailto:jcupitt gmail com]
Sent:   Thu 05-Aug-04 22:48
To:     Andersen, Jan
Cc:     gtk-app-devel-list gnome org
Subject:        Re: Size of application is huge
That doesn't sound right. If I run

  gtk+-2.4.4/tests/testtreeview

(makes a complicated treeview with about 1500 rows in total) the
process size (both RSS and size) is about 6 MBytes.

Maybe you have some kind of frightening leak in the way you build the trees?

On Thu, 5 Aug 2004 15:12:12 +0100, Andersen, Jan
<jandersen informatica com> wrote:
I have made a simple (simplish) application: it reads a configuration and based on this it creates an 
information display. The information is organized thus:

- The toplevel is a notebook with a number of tabs.
- Each tab contains another notebook with a number of tabs
- Each tab in those notebooks contains a GtkTreeView displaying a GtkListStore with up to <100 lines of 
text.

The toplevel notebook typically has 8 pages and each second level notebook has 4 pages.what shocks me is 
the fact that it uses about 318MB from start. Another problem is that after several hours of use it will 
sometimes allocate everything in the machine (up to 1.5GB - all real and virtual storage), then it will 
dump it all as a core file.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]