[gstreamer-bugs] [Bug 437457] saving relocations for GstElementDetails
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Fri Jun 22 03:02:50 PDT 2007
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=437457
GStreamer | gstreamer (core) | Ver: HEAD CVS
------- Comment #10 from Stefan Kost (gstreamer, gtkdoc dev) 2007-06-22 10:02 UTC -------
@Jan, its quick tricky: Here is what happens:
libgstaudiodelay is a plugin with one element, that had the global static const
GstElementDetails (before). Next I moved it as a local var into _base_init().
Then I removed static and finally I used the
gst_element_class_set_details_simple().
These are the binary sizes:
51029 libgstaudiodelay.before.so*
51035 libgstaudiodelay.local-nonstatic.so*
51035 libgstaudiodelay.local.so*
50972 libgstaudiodelay.simple.so*
> readelf -d libgstaudiodelay.before.so | grep REL
0x00000002 (PLTRELSZ) 320 (bytes)
0x00000012 (RELSZ) 200 (bytes)
0x6ffffffa (RELCOUNT) 21
> readelf -d libgstaudiodelay.local.so | grep REL
0x00000002 (PLTRELSZ) 320 (bytes)
0x00000012 (RELSZ) 200 (bytes)
0x6ffffffa (RELCOUNT) 21
> readelf -d libgstaudiodelay.local-nonstatic.so | grep REL
0x00000002 (PLTRELSZ) 320 (bytes)
0x00000012 (RELSZ) 200 (bytes)
0x6ffffffa (RELCOUNT) 21
> readelf -d libgstaudiodelay.simple.so | grep REL
0x00000002 (PLTRELSZ) 320 (bytes)
0x00000012 (RELSZ) 168 (bytes)
0x6ffffffa (RELCOUNT) 17
Some of the savings in file-size are because now there is no code to initialize
the struct and only a little more code for the function call. The savings of
reloc-entries is because the struct contains pointers to strings which need to
be relocated. It the struct would only contain constant numbers (like a bitrate
table) it would be fine.
--
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=437457.
More information about the Gstreamer-bugs
mailing list