[gstreamer-bugs] [Bug 604965] Gst.Application.GstResolveType is useless, or just very slow at best

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Dec 26 21:06:02 PST 2009


https://bugzilla.gnome.org/show_bug.cgi?id=604965
  GStreamer | gst-sharp | git

--- Comment #8 from Maarten Bosmans <mkbosmans at gmail.com> 2009-12-26 11:48:38 UTC ---
Created an attachment (id=150398)
 View: https://bugzilla.gnome.org/attachment.cgi?id=150398
 Review: https://bugzilla.gnome.org/review?bug=604965&attachment=150398

Only call GetTypes() once for each assembly

The 360ms for the first call to GstResolveType cannot be avoided without a
completely different way of resolving plugin element types, as it is the time
to call Assembly.GetTypes() on the gstreamer-sharp assembly.

For subsequent calls however, instead of searching all the type each time,
another Dictionary can be used to speed this up. This patch reduces the time
from the previously reported 70ms to ~1ms.

In my usecase of just a simple PlayBin2 with a custom videosink it results in a
noticably better response to pressing the play button.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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