Re: Overhead of type casting when using GObject system

On Sat, Feb 09, 2013 at 01:43:43PM +0100, Lanoxx wrote:

> >However those cast checks can be disabled at compile time removing
> >the overhead, so GTK_WIDGET(foo) would be equivalent to (GtkWidget
> >*) foo.

> Ah thats good to know. But still I believe that most applications
> that are shipped with gnome are not compiled that way. So what
> overhead does that actually create.

I never measured it, I guess the results depend a lot on the case.

About the size of the binaries, I quickly compiled a couple of GTK+
programs and they're ~5% smaller without cast checks.


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