mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
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
This commit is contained in:
committed by
Emmanuele Bassi
parent
08f473ffef
commit
f3879a4bdc
@@ -141,6 +141,7 @@ g_object_new
|
||||
g_object_newv
|
||||
g_object_new_valist
|
||||
g_object_notify
|
||||
g_object_notify_by_pspec
|
||||
g_object_is_floating
|
||||
g_object_ref_sink
|
||||
g_object_force_floating
|
||||
|
Reference in New Issue
Block a user