Re: [gtkmm] Is gtkmm bloated (6016 vs 30008 bytes)
- From: Alberto Paro <alberto paro homeunix org>
- To: gtkmm <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Is gtkmm bloated (6016 vs 30008 bytes)
- Date: Thu, 20 Nov 2003 03:21:56 +0100
Il mer, 2003-11-19 alle 20:40, Michael N. Filippov ha scritto:
> Hello !
> It must be very popular question and included in FAQ:
> Q. Is gtkmm bloated
> A. No, gtkmm is a thin wrapper. ...
>
> But this is what I mentioned after compiling gtk and gtkmm:
> gtk-2.2.4 vs gtkmm-2.2.8 (gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
> with default Makefiles, dymanically linked, after 'strip -s'). Sizes:
> samples/fixed: 6016 vs 30008 (1/5)
> demos/gtk-demo: 78012 vs 437536 (1/5 - 1/6)
> So it is not "stub" size (perhaps SigC::slot()s ?) and executable is 5-6
> times bigger
A thin wrapper does not mean that executables are small! During c++
wrapping a lot of code is added for wrapping calls. Also use of c++
structures such as list, map, string (Glib::ustring) and template let
the result code bigger.
For tipical gtk+ call a gtkmm does not add overload to the call.
Hi,
Alberto
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]