mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
gobject: Use fast fundamental instance type check
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
This commit is contained in:
parent
6072e3650f
commit
faceb8960b
@ -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_FUNDAMENTAL_TYPE ((object), G_TYPE_OBJECT))
|
||||
/**
|
||||
* G_IS_OBJECT_CLASS:
|
||||
* @class: a #GObjectClass
|
||||
|
Loading…
Reference in New Issue
Block a user