Re: shrink GTK+ disk usage for Windows

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

 



On Wed, Mar 31, 2010 at 2:34 PM,  <jcupitt@xxxxxxxxx> wrote:
> On 31 March 2010 17:59, Andrew Ziem <ahz001@xxxxxxxxx> wrote:
>>> It's probably possible to shrink that a bit more, perhaps by stripping
>>> symbols from the files more aggressively.
>>
>> Wow, using Linux 'strip -v bin/*' cuts the bin directory from 16M to
>> 9.3M!  After UPX, it's down to 3.9M (compare to 7.8MB below).
>
> Good stuff. I think you need to be a bit careful with strip, it's
> possible to break linking if you take too much off (I seem to remember
> breaking it at some point anyway). Test carefully!

I hadn't tested yet when I wrote that :).  Now I see that stripping
almost anything (except freetype6.dll) causes the app to not start.
>From Linux I tried 'strip' and 'strip -g'.  Are there safer ways to
strip?

The good news is through this I did find a few more files to delete
rm -rf manifest
rm bin/libtiff-3.dll
rm bin/libtiffxx-3.dll
rm lib/gtk-2.0/2.10.0/engines/libpixmap.dll
rm bin/*exe
find lib/gtk-2.0/2.10.0/loaders/ | grep dll$ | grep -v png | xargs rm

> You could take a look at projects like Inkscape. It'd be interesting
> to see how large the stack they use is --- they have put a lot of time
> into this sort of issue.

Good idea.  I started looking but haven't found anything yet.

Best regards,
Andrew
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux