Persistent LC server?
Monte Goulding
monte at sweattechnologies.com
Fri Aug 2 17:41:54 EDT 2013
On 03/08/2013, at 7:16 AM, Richard Gaskin <ambassador at fourthworld.com> wrote:
> In your code base exploration have you discovered why the Linux Server engine is nearly 50% larger than that non-server Linux standalone engine?
I believe theres some extra libraries included in server.
> > My biggest question though is what event is triggered on the
> > persistent server when you request some part of your array?
> > LC Server scripts are basically just one big startup handler
> > without the handler declaration.
>
> Right. If I were to pursue this I'd probably write a quasi-event look, watching a particular socket.
I'm not sure if server has sockets...
>
> At the moment, though, I'm on a different path, since I discovered a way to make an array-like file I can access elements within from a cold start at about 0.02ms per access, fast enough for CGI use.
That sounds like the way to go then... use a persistent process and it should be unmeasurable.
--
Monte Goulding
M E R Goulding - software development services
mergExt - There's an external for that!
More information about the use-livecode
mailing list