GNOME Bugzilla – Bug 545100
use string pools to lower number of relocations
Last modified: 2011-05-19 09:20:40 UTC
See http://0pointer.de/blog/projects/string-pools.html for code example. Here we could use it right away and would ave around 50 relocs. gstreamer/gst$ grep -Hn "gchar \*.*\[\]" *.c gstinfo.c:646: static const gchar *levelcolormap[] = { gstplugin.c:96:static const gchar *valid_licenses[] = { gstquark.c:28:static const gchar *_quark_strings[] = { Unfortunately it won't work for gstenumtypes.c. With some effort (split into separate arrays) more could be saved on: GstEventQuarks, GstFormatDefinition, GstMessageQuarks, GstFlowQuarks, GstQueryTypeDefinition, GstStructureAbbreviation One can check the number of relocations readelf -d .libs/libgstreamer-0.10.so | grep RELCOUNT which for me right now is '1036'.
Is this really worth the effort? Do you plan to work on this?
Won't have time for it right now. Lets close it - there are more worthy place to improve.