[vlc-devel] [PATCH] GSoC: lua services discovery, core part

Rémi Denis-Courmont remi at remlab.net
Mon Nov 9 14:32:42 CET 2009

On Mon, 9 Nov 2009 13:57:36 +0100, Fabio Ritrovato
<exsephiroth87 at gmail.com> wrote:
>>> but it's either that, or caching them and every time you load the cache
>>> check if the modules are still there, that's even slower...
>> No. That's order of magnitudes faster, because stat() is order of
>> magnitudes faster than dlopen(), especially on a cold disk cache.
> The LUA interpreter is not even loaded until you start the sd, so it's
> not slowing down anything...
> And, I'm not dlopening anything, I'm just adding submodules...

You are inhibiting caching of the LUA plugin. That forces the module bank
initialization to dlopen() the LUA plugin, and then run the module entry
_every_ single time that VLC is started.

Rémi Denis-Courmont

More information about the vlc-devel mailing list