[Bug 756738] gst_registry_plugin_filter() and gst_registry_feature_filter() callbacks can't use any API using the registry
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Oct 22 12:56:37 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=756738
--- Comment #10 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
Ran some stupid benchmarks out of curiosity (average run of 10000 cycles;
always with first=false):
--------------------
RPI2 (1336 features)
--------------------
match-none match-all
current 28us 838us
list-copy 592us 1392us
iterator 5382us 6158us
-----------------------
core i7 (1347 features)
-----------------------
match-none match-all
current 7us 59us
list-copy 36us 89us
iterator 364us 405us
Even on an rpi the impact is in the area of 0.5 milliseconds in the worst case
scenario (full iteration). Since this is not something that's done a lot that
strikes me as not something to worry about too much. Adding complicated new API
for a task like this just to maintain a small performance advantage for
something that's not super performance sensitive seems unnecessary to me. Also
the iterator API is considerably slower than my proposed solution.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list