GNOME Bugzilla – Bug 662091
plugin loader: spawn new plugin loader helper after loading N plugins
Last modified: 2011-10-26 10:20:53 UTC
In some environments (e.g. Android, or Linux in some cases) there may be quite strict limits on the number of open file descriptors / loaded libraries or some such. It would be good if we could support a mode where we don't introspect all plugins using the same plugin loading helper, but make the helper exit after N plugins and then re-spawn a new one to introspect the next few plugins. This makes sure we don't get the plugin helper killed when loading too many plugins/libraries.
Created attachment 199525 [details] [review] registry: add support for GST_REGISTRY_REUSE_PLUGIN_SCANNER=no Tentative patch, seems to work. This will make sure we spawn a new plugin scanner helper for each plugin to be introspected, which helps with making sure we don't load too many shared objects (libs, plugins) at the same time on systems where there is a hard limit like on Android. FIXME: a better version would re-use the scanner for up to N times
commit dd9f244f033ba3978d6ee26d9205d29fdd862d7c Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Tue Oct 18 23:19:47 2011 +0100 registry: add support for GST_REGISTRY_REUSE_PLUGIN_SCANNER=no This will make sure we spawn a new plugin scanner helper for each plugin to be introspected, which helps with making sure we don't load too many shared objects (libs, plugins) at the same time on systems where there is a hard limit like on Android. A better version might re-use the scanner for up to N times, though it's not clear whether that would actually improve things dramatically. https://bugzilla.gnome.org/show_bug.cgi?id=662091