*From*: Sven Neumann <sven gimp org>*To*: Michael Taht <mtaht mvista com>*Cc*: gtk-list gnome org*Subject*: Re: Shrinking GTK for PDA usage*Date*: 17 Jun 2002 12:59:48 +0200

Hi, Michael Taht <mtaht mvista com> writes: > >From our arm_sa_le distro: > > X11R6/lib > > 78200 May 23 2002 libICE.so.6.3 > 31672 May 23 2002 libSM.so.6.0 > 702096 May 23 2002 libX11.so.6.2 > 56744 May 23 2002 libXext.so.6.4 > 94120 May 23 2002 libXft.so.1.1 > 54336 May 23 2002 libXpm.so.4.11 > 7896 May 23 2002 libXrandr.so.1.0 > 18000 May 23 2002 libXrender.so.1.1 > 18532 May 30 2002 libXtst.so.6.1 > 42904 May 23 2002 libxrx.so.6.3 > > 1104500 TOTAL (or, 1078k) for X11 libs > > 1018576 libgtk-1.2.so.0.9.1 > 188664 libgdk-1.2.so.0.9.1 > 150912 gtk/themes/engines/libxeno.so.0.8 > > 1358152 TOTAL (or 1326k) for X11 based gtk/gdk libs > > 738380 Xipaq > 27224 blurt > 254492 dillo > 41140 matchbox > 4940 mbcontrol > 13660 miniapm > 11612 minisys > 7848 minitime > 10612 minivol > 7980 miniwave > 8792 monolaunch > 11615 xkbd > 10002 xrandr > 21004 xset > > 1169301 TOTAL (1141k) > > You wouldn't be measuring properly if you didn't count glib 1.2, too, > so: > > 174604 libglib.so > 8916 libgmodule.so > 7964 libgthread.so > 191484 TOTAL (or, 186k) > > Total size of a PDA sized GTK+/X11 distro - with a useful window > manager, virtual keyboard, web browser and tools - without fonts: > > 3731k > > As I wrote before, fonts are a bigger part of the size problem than the > libraries themselves - truetype fonts, in particular, are huge. And the > rest of the Linux OS overhead ain't too shabby either, in my case, over > 5x the size of the graphics core. > > Got numbers for a directFB one, on arm? (glib 2.0/gtk 2.0/pango/atk/etc) I should have at least given you some numbers. Sorry, I don't have any at hand for the ARM platform, but here are some for ix86 measured a few months ago: libgtk-directfb-2.0.so.0 2163k libgdk-directfb-2.0.so.0 307k libatk-1.0.so.0 82k libgdk_pixbuf-2.0.so.0 71k libpangoft2-1.0.so.0 176k libpango-1.0.so.0 189k libgobject-2.0.so.0 216k libgmodule-2.0.so.0 10k libglib-2.0.so.0 396k libdirectfb-0.9.so.10 148k libfreetype.so.6 246k libpng.so.2 174k libz.so.1 55k ----- 4233k This is a full-featured GTK+-2.0 setup. We have been able to strip GTK+ down to below 1MB by removing lots of widgets we don't need. Of course this is very application-dependant: libgtk-directfb-2.0.so.0 962k ----- 3032k the dependency on libatk can easily be dropped and the size of freetype may also be reduced by removing unneeded font drivers so it should definitely be possible to get a useful GTK+-2.0 setup below 3MB. Of course we have omitted the kernel, the base system as well as libc in this calculation. Using dietlibc, we have also created a statically linked GTK+-2.0 application that has _no_ additional dependencies and weights in under 2MB. Oh well, perhaps I should sit down and prepare the slides from our talk at Guadec3 for the web. Salut, Sven

**Follow-Ups**:**Re: Shrinking GTK for PDA usage***From:*Michael Taht

**References**:**Shrinking GTK for PDA usage***From:*Luis Oliveira

**Re: Shrinking GTK for PDA usage***From:*Sven Neumann

**Re: Shrinking GTK for PDA usage***From:*Luis Oliveira

**Re: Shrinking GTK for PDA usage***From:*Sven Neumann

**Re: Shrinking GTK for PDA usage***From:*Luis Oliveira

**Re: Shrinking GTK for PDA usage***From:*Michael Taht

**Re: Shrinking GTK for PDA usage***From:*Sven Neumann

**Re: Shrinking GTK for PDA usage***From:*Michael Taht

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