CGI Problem Solved [was Re: CGI Fiction Search Example]

J. Landman Gay jacque at
Tue Sep 7 00:06:56 EDT 2004

On 9/6/04 1:35 PM, Gregory Lypny wrote:

> While I'm here, I do have another question for anyone out there with 
> Revolution cgi experience, and this concerns the speed with which a 
> Revolution cgi returns a result the first time it is called by a 
> client.  My first search of Fiction Search takes a long time, say, 
> thirty seconds, to return a page of hits.  Subsequent searches are 
> completed in the blink of an eye.  Is this a client-side or server-side 
> thing?  In other words, will all visitors to my projects experience a 
> potentially confusing slow first response, or is it just a matter of me 
> somehow priming or loading the Revolution engine into memory on my 
> server in advance, so that it's ready for visitors?

I'm not sure what to tell you, except that I've never seen that kind of 
lag, even the first time I run the cgi. There must be something else 
going on. On my Mac, I can't tell the difference between the first time 
I run it and subsequent times.

Each time the cgi runs a new instance of Revolution is launched, so you 
can't really "preload" it. The OS will cache the engine usually by 
itself, so maybe your machine is doing something that mine isn't?

Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

More information about the use-livecode mailing list