Re: Overhead of type casting when using GObject system
- From: Alberto Garcia <agarcia igalia com>
- To: gtk-devel-list gnome org
- Subject: Re: Overhead of type casting when using GObject system
- Date: Sat, 9 Feb 2013 20:01:10 +0100
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.
Berto
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]