list-item: Use notify_by_pspec instead of by name
authorIvan Molodetskikh <yalterz@gmail.com>
Fri, 6 May 2022 15:05:03 +0000 (18:05 +0300)
committerIvan Molodetskikh <yalterz@gmail.com>
Fri, 6 May 2022 15:05:03 +0000 (18:05 +0300)
commit8328bd9f9614b4e16d25c855cc591064f76c9c33
treebbd04ed50753e127d3d5bf5c61f58e582c8bf6b6
parent1a82e6a7624e5a08b8bd3d7b86a40b3a86f0066d
list-item: Use notify_by_pspec instead of by name

This is a hot path when scrolling a ColumnView, and
g_param_spec_pool_lookup () was taking a measurable part in this hot
path. Instead, notify using pspecs to avoid the name lookup.

Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/3334
gtk/gtklistitem.c
gtk/gtklistitemprivate.h
gtk/gtklistitemwidget.c