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

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Nov 27 23:55:31 PST 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=500143

  GStreamer | gstreamer (core) | Ver: HEAD CVS
           Summary: Some small improvements (limiting realloc and CPU usage
                    )
           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: spglegle at yahoo.fr
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


gstcaps.c ::
  - preallocate string size to avoid too many realloc

gststructure.c ::
  - replace some for() iterations by a while(i--) which is faster.
  - preallocate string size to avoid too many realloc

gstvalue.c ::
  - replace some for() iterations by a while(i--) which is faster.
  - replace 
for (n = 0; n < size; n++) {
       kid = gst_value_array_get_value (value, n);
       fixed &= gst_value_is_fixed (kid);
     }

by 
    for (n = 0; n < size && fixed; n++) {
       kid = gst_value_array_get_value (value, n);
       fixed &= gst_value_is_fixed (kid);
     }

to exit the loop when 'fixed' turned to be false.


-- 
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