e: Mar 13, 2007 12:33 PM
Subject: Re: Server-side script takes way too long to launch
To: Teresa Hardy <[EMAIL PROTECTED]>
Can you send the program? It's hard to try and follow through without...
With the additional socket library calls, that could contribute.
On 3/13/07, Teresa Hardy
But even if the server was loading Python on each hit, which it will for
CGI, it shouldn't take "a count to 13", especially on localhost. That to me
is an indication of a further problem. Does it take that long to load with
each hit, or just the first following a server restart? What do log
time
Teresa, when you call a python script this way, the server needs to load the
python interpreter for each call.
If you need faster execution you should look into having a server process
running already. Something like mod_python for apache or CherryPy will help
you speed this up.
-Josh
On 3/13/
I have a webpage calling a python script, using Apache
serverhttp://localhost/cgi-bin/mycode.py?dmn
I am using Firefox, WindowsXP Python 2.4
I can count to 13 from the time I click to the time the browser finds the
path.
The python runs okay when I finally get to it. In the first step it jus