[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [LCP]Dynamic libraries and plugins



Title: RE: [LCP]Dynamic libraries and plugins

> I have a also a question regarding dlopen and friends (and
> when it would
> make sense to use them)....
> Say I have a program which is executed often (maybe even
> several times a
> second) with many different options.
> Due to soooo many options would it make sense to put
> different parts of
> the code into seperate shared libs and call dlopen() by hand?

This may not answer your question directly, but if you call
your program very often, I'd keep a daemon running, and the
program itself would merely contact the daemon to tell it
what to do. This way, there is no init time (just when loading
the daemon).
However, depending on what you do, it might be too much in
memory (to keep the daemon in-core at all times). As usual,
YMMV, each situation may need a different setup.

--
Vincent Penquerc'h