[gstreamer-bugs] [Bug 459501] gst_registry_lookup_feature_locked is slow
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Mon Jul 23 04:27:37 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=459501
GStreamer | gstreamer (core) | Ver: HEAD CVS
------- Comment #1 from Stefan Kost (gstreamer, gtkdoc dev) 2007-07-23 11:27 UTC -------
Created an attachment (id=92196)
--> (http://bugzilla.gnome.org/attachment.cgi?id=92196&action=view)
use hashmap to speedup lookups
I run this with registry removed and inplace.
time gst-inspect >/dev/null
= before =
real 0m0.768s user 0m0.628s sys 0m0.084s
real 0m0.781s user 0m0.648s sys 0m0.084s
real 0m0.816s user 0m0.660s sys 0m0.080s
real 0m0.098s user 0m0.060s sys 0m0.008s
real 0m0.090s user 0m0.052s sys 0m0.008s
real 0m0.080s user 0m0.044s sys 0m0.016s
= after =
samples % image name symbol name
153 25.8883 libgstreamer-0.10.so.0.12.0
gst_registry_lookup_feature_locked
63 10.6599 libgstreamer-0.10.so.0.12.0
_gst_plugin_feature_filter_plugin_name
56 9.4755 libgstreamer-0.10.so.0.12.0 .plt
29 4.9069 libgstreamer-0.10.so.0.12.0 gst_filter_run
17 2.8765 libgstreamer-0.10.so.0.12.0 __i686.get_pc_thunk.bx
17 2.8765 libgstreamer-0.10.so.0.12.0 gst_value_serialize
12 2.0305 libgstreamer-0.10.so.0.12.0 gst_registry_lookup_locked
12 2.0305 libgstreamer-0.10.so.0.12.0 gst_structure_to_string
real 0m0.749s user 0m0.644s sys 0m0.068s
real 0m0.765s user 0m0.636s sys 0m0.084s
real 0m0.783s user 0m0.632s sys 0m0.060s
real 0m0.074s user 0m0.040s sys 0m0.008s
real 0m0.098s user 0m0.060s sys 0m0.008s
real 0m0.075s user 0m0.040s sys 0m0.016s
samples % image name symbol name
73 16.7816 libgstreamer-0.10.so.0.12.0
_gst_plugin_feature_filter_plugin_name
53 12.1839 libgstreamer-0.10.so.0.12.0 gst_filter_run
29 6.6667 libgstreamer-0.10.so.0.12.0 .plt
21 4.8276 libgstreamer-0.10.so.0.12.0 __i686.get_pc_thunk.bx
15 3.4483 libgstreamer-0.10.so.0.12.0 gst_registry_lookup_locked
14 3.2184 libgstreamer-0.10.so.0.12.0 gst_value_serialize
12 2.7586 libgstreamer-0.10.so.0.12.0 gst_structure_parse_simple_string
10 2.2989 libgstreamer-0.10.so.0.12.0 gst_registry_binary_read_cache
9 2.0690 libgstreamer-0.10.so.0.12.0 __gst_element_details_copy
9 2.0690 libgstreamer-0.10.so.0.12.0 gst_structure_to_string
--
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=459501.
More information about the Gstreamer-bugs
mailing list