[gstreamer-bugs] [Bug 459862] typefinding coud be more efficient
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Tue Jul 24 07:28:10 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=459862
GStreamer | gstreamer (core) | Ver: HEAD CVS
------- Comment #4 from Stefan Kost (gstreamer, gtkdoc dev) 2007-07-24 14:28 UTC -------
If leaking the typefinder list is acceptable, we could also add:
static GList *type_list = NULL;
static GList *
type_find_factory_get_list (void)
{
if (G_UNLIKELY(!type_list)) {
GstRegistry *registry = gst_registry_get_default ();
type_list = gst_registry_get_feature_list (registry,
GST_TYPE_TYPE_FIND_FACTORY);
type_list = g_list_sort (type_list, type_find_factory_rank_cmp);
}
return type_list;
}
which brings the time down to:
real 0m2.958s
user 0m2.680s
sys 0m0.168s
--
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=459862.
More information about the Gstreamer-bugs
mailing list