[gstreamer-bugs] [Bug 545100] New: use string pools to lower number of relocations
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Mon Jul 28 01:29:22 PDT 2008
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=545100
GStreamer | gstreamer (core) | Ver: HEAD CVS
Summary: use string pools to lower number of relocations
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: enhancement
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: ensonic at sonicpulse.de
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
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'.
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=545100.
More information about the Gstreamer-bugs
mailing list