summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@collabora.com>2014-05-28 10:59:14 +0200
committerEdward Hervey <bilboed@bilboed.com>2014-05-30 12:05:09 +0200
commitf1a5f871c8ca57ebfc1a603604040f1709f935e4 (patch)
treeaaf44dffcc7896ba22621eb712ed4e7bdf683eff
parentb00907d66b45928951d21d6ec3c49b148e6072f7 (diff)
gobject: Use fast fundamental instance type checkfundamental
Speeds up g_object_ref/_unref by 50%-65% (i.e. takes 60-65% of the time it used to take). https://bugzilla.gnome.org/show_bug.cgi?id=730984
-rw-r--r--gobject/gobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/gobject.h b/gobject/gobject.h
index 28996ca77..80eda50fa 100644
--- a/gobject/gobject.h
+++ b/gobject/gobject.h
@@ -62,7 +62,7 @@ G_BEGIN_DECLS
*
* Checks whether a valid #GTypeInstance pointer is of type %G_TYPE_OBJECT.
*/
-#define G_IS_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), G_TYPE_OBJECT))
+#define G_IS_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE_FUNDAMENTAL ((object), G_TYPE_OBJECT))
/**
* G_IS_OBJECT_CLASS:
* @class: a #GObjectClass