Add fast path for construction with no params
authorAlexander Larsson <alexl@redhat.com>
Wed, 19 Aug 2009 15:24:16 +0000 (17:24 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 2 Oct 2009 19:02:48 +0000 (21:02 +0200)
commit1937765f9f9052a870cfd924b18e08aa8901a8f2
tree9abc026cbf8b879233c201576ddf28b8065394b1
parentffc625ec9bcc4b2d34921940c07b28d244f2257a
Add fast path for construction with no params

This avoids a bunch of code and makes construction of simple objects
faster.

Object construction performance improvement:
         Non-Threaded   Threaded
Simple:           14%         5%
Complex:        -1.1%      -2.2%

Other tests stable.

https://bugzilla.gnome.org/show_bug.cgi?id=557100
gobject/gobject.c