[vlc-devel] [PATCH] GSoC: lua services discovery, core part
exsephiroth87 at gmail.com
Mon Nov 9 13:57:36 CET 2009
2009/11/9 Rémi Denis-Courmont <remi at remlab.net>:
> I don't know how badly the LUA interpreter would slow down loading. The
> point is, dlopen'ing shared objects is slow, and LoadLibrary'ing a DLL is
> very slow. Parsing LUA scripts on top, will just make the whole even
> slower. And in fact, we might very well have a lot of LUA scripts.
> Otherwise, I don't see the point of making it easy to write SD plugins.
>> 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...
Also, the whole point of the GSoC was to have easy to write SD plugins, so...
More information about the vlc-devel