On 8/5/25 19:55 Nikolay Tomov wrote:
> I'm building some apps (still in early stage of development). They are
> going to run on Linux and Windows. I ahve chosen FLTK because it's
> light weight and speed.
Great, welcome to FLTK, and thanks for choosing FLTK.
> As most of the apps will load the libraries dynamically, I'm thinking
> of making the FLTK libraries run as a service in the OS, and allow me
> to hook to the service, to avoid loading the same so/dll again and
> again (that's the reason not to statically link to them as well). Have
> you considered to make FLTK service, so the resource usage is
> minimized if more than 1 program is using them?
Hmm, I don't understand the difference between making FLTK a service or
to just use the shared libraries. Loading shared libraries into memory
only once is the whole purpose of building shared libraries in the first
place. What do you mean by "hook to the service" ?
The only difference I can imagine is the first loading of the shared
libraries. If you want to avoid the (minimal) overhead of loading the
libraries for the first time, then you might want to create a dummy
("service") program that gets started early, loads all FLTK shared libs,
and does ... nothing.
Well, if that's what you want to do, it's up to you, feel free to do
this (and report what you did). I don't believe that we (the FLTK Team)
are interested in such a feature. Unless I misunderstood what you want
to achieve... (?)