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)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 7 May 2022 14:31:22 +0000 (10:31 -0400)
commit3894f04d0eb03dbba2814370c76402361345b448
tree6a9261a9ede8549128699ab1614733e138fb71c1
parenta39d55e5b08946cc2eccdb5d57570bc5a38ede10
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