Built-in plugins?

Aleksander Morgado aleksander at aleksander.es
Sun Nov 17 14:09:26 UTC 2019


> > Is there any benefit in keeping per-vendor plugins installed as
> > separate .so files and loaded during runtime?
> >
> > Does anyone know of any out-of-tree MM plugin out there? I would bet
> > there isn't any as we truly haven't kept a stable plugin API like
> > never ever.
> >
> > Thinking of installed size, I believe we may end up duplicating a lot
> > of code when plugins share common code, as the utils libraries are
> > not
> > installed, they get incorporated in the plugins themselves. This also
> > makes some unexpected runtime errors if a plugin tries to register a
> > type that some other plugin has already registered (just had this one
> > today with the new Foxconn plugin in git master, which shares code
> > with the Dell plugin).
> >
> > What if we just simplify the setup and get all incorporated in the
> > daemon binary itself (for MM 1.14 for example)?
>
> It seems OK, but what's the size difference of MM binary with no
> plugins, and with all plugins?
>

No real idea until that is implemented, but if my numbers are more or
less approx, I'd say that we could go from (e.g. in my host setup)
6.5MB daemon + 7MB plugins to 12MB daemon (so around ~2MB less). But a
proper plugin setup with new modules providing the shared stuff would
gain us the same amount of space, and that is probably also a good
idea. See my next reply to Matthew.

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list