diff options
author | Damien Lespiau <damien.lespiau@gmail.com> | 2010-04-10 15:50:40 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-06-15 10:51:36 +0100 |
commit | f3879a4bdca2ff1cf6c6b016d67a7e5d40c0e86b (patch) | |
tree | 168f518131413072d0e36fcee0d196f7306affa4 /gobject/genums.h | |
parent | 08f473ffeff7524e619dc0459c07a981a3b4285c (diff) | |
download | glib-f3879a4bdca2ff1cf6c6b016d67a7e5d40c0e86b.tar.gz |
Introduce g_object_notify_by_pspec()
g_object_notify_by_pspec() will emit the "notify" signal on the given
pspec, short-circuiting the hash table lookup needed by
g_object_notify(). The suggested and documented way of using
g_object_notify_by_pspec() is similar to the way of emitting signals
with their ID.
Emission tests (with no handler attached to the notify signal) show a
10-15% speedup over using g_object_notify().
https://bugzilla.gnome.org/show_bug.cgi?id=615425
Diffstat (limited to 'gobject/genums.h')
0 files changed, 0 insertions, 0 deletions