[gstreamer-bugs] [Bug 500143] Some small improvements (limiting realloc and CPU usage )

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Jan 9 08:40:57 PST 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=500143

  GStreamer | gstreamer (core) | Ver: HEAD CVS

Tim-Philipp Müller changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |t.i.m at zen.co.uk
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|HEAD                        |0.10.16




------- Comment #6 from Tim-Philipp Müller  2008-01-09 16:40 UTC -------
 2008-01-09  Tim-Philipp Müller  <tim at centricular dot net>

        * gst/gst_private.h: (STRUCTURE_ESTIMATED_STRING_LEN):
        * gst/gstcaps.c: (gst_caps_to_string):
        * gst/gststructure.c: (GST_ASCII_IS_STRING),
          (priv_gst_structure_append_to_gstring), (gst_structure_to_string):
          Yet another gratuitous GString micro-optimisation: add a (private)
          function that serialises a structure appending to an existing
          GString, so that when we serialise caps we don't need to alloc+free
          a throwaway GString for each structure (each of which also entailing
          multiple reallocs on the way); also use g_string_sized_new() in
          various places with an approximate string length to avoid reallocs
          within GString. See #500143.

 2007-12-28  Tim-Philipp Müller  <tim at centricular dot net>

        Based on patch by: Laurent Glayal  <spglegle yahoo fr>

        * gst/gstvalue.c: (gst_value_is_fixed):
          Optimisation: bail out of the loop as early as possible (#500143).


-- 
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=500143.




More information about the Gstreamer-bugs mailing list