cssnode: Convert name + id from interned string to GQuark
authorBenjamin Otte <otte@redhat.com>
Thu, 23 Jan 2020 23:43:26 +0000 (00:43 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 28 Jan 2020 01:17:03 +0000 (02:17 +0100)
commit146b9212462b8a8ba8eb5c162bc667fe5a792bb0
treeb1b9088c9fe8a062da4d3f8b322987a5301e4c87
parent8b93ea9238bcbb99f6caadca9f6ef1d422926a35
cssnode: Convert name + id from interned string to GQuark

The reason for this is simply that I want to get hash functions that
have their values close together, so they can fit in a smaller range
(the goal here is 12 bits). By using GQuark, we get consecutive numbers
starting with 1 (and applications have <1000 quarks usually), whereas
interned strings can be all over the place.

As a side effect we also save 64 bytes per declaration.
25 files changed:
gtk/gtkcheckbutton.c
gtk/gtkcssnode.c
gtk/gtkcssnodedeclaration.c
gtk/gtkcssnodedeclarationprivate.h
gtk/gtkcssnodeprivate.h
gtk/gtkcssselector.c
gtk/gtkflowbox.c
gtk/gtkicon.c
gtk/gtkiconview.c
gtk/gtklabel.c
gtk/gtkmodelbutton.c
gtk/gtkpopover.c
gtk/gtkprintunixdialog.c
gtk/gtkradiobutton.c
gtk/gtkscrolledwindow.c
gtk/gtksizerequest.c
gtk/gtkstylecontext.c
gtk/gtktext.c
gtk/gtktextview.c
gtk/gtktextviewchild.c
gtk/gtktreeview.c
gtk/gtkwidget.c
gtk/gtkwindow.c
gtk/inspector/css-node-tree.c
gtk/inspector/prop-editor.c