Allocate GObjectNotifyQueue with g_slice instead of abusing g_list
authorAlexander Larsson <alexl@redhat.com>
Wed, 19 Aug 2009 13:48:19 +0000 (15:48 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 2 Oct 2009 19:02:48 +0000 (21:02 +0200)
commitaf017accc55aff3d6f28df0a41724e93fca71ff4
tree53887848ff222d571bd9b45e7777324cabb8eda5
parentf4d9789fcfc4c9be497414d6c65476adb9d20236
Allocate GObjectNotifyQueue with g_slice instead of abusing g_list

This is both cleaner and faster (it avoids function calls and
zeroing the memory twice).

Object construction performance improvement:
         Non-Threaded   Threaded
Simple:           11%       1.3%
Complex:           8%         6%

Other tests stable.

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