Re: Dispatch of GObject virtual functions in GtkMM
- From: Daniel Elstner <daniel kitta googlemail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: Dispatch of GObject virtual functions in GtkMM
- Date: Mon, 29 Jan 2007 13:49:20 +0100
Am Montag, den 29.01.2007, 10:16 +0100 schrieb Murray Cumming:
> On Sun, 2007-01-28 at 20:09 +0100, Daniel Elstner wrote:
> > In my opinion functions like Gtk::manage<>() should have been declared
> > inline in the first place, but unfortunately we can't do that now
> > without breaking ABI. (Well, unless one uses some trickery to always
> > include the definition of the inline function when compiling the library
> > itself, but...)
>
> Such ABI breaks are possible for the optional API used by embedded
> devices. I believe that's what Matt is interested in.
>
> But inlining could increase code size, so there may be a tradeoff choice
> to make.
I was specifically referring to those cases where inlining *decreases*
code size. This is not that rare, actually. Not to mention that there
would be fewer dynamic symbols to resolve in the library (not relevant
for Gtk::manage<>(), but for many other one-liners in *mm).
--Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]