gtype: Add check for fundamental instance type
authorEdward Hervey <edward@collabora.com>
Wed, 28 May 2014 08:57:28 +0000 (10:57 +0200)
committerRyan Lortie <desrt@desrt.ca>
Sat, 31 May 2014 13:45:29 +0000 (15:45 +0200)
commit6072e3650fba8ff57b5c3f135f81488c83f27f0b
tree2d58d81c1db78221eb356d8f00ed710a4afc9a83
parent03a48e1adea2862635c439f8270a5cc2d969289a
gtype: Add check for fundamental instance type

When checking whether an instance is of a given fundamental type (such
as G_TYPE_OBJECT), we can avoid over 60%+ of the cost of checking types.

https://bugzilla.gnome.org/show_bug.cgi?id=730984
docs/reference/gobject/gobject-sections.txt
gobject/gtype.c
gobject/gtype.h