Server-side script takes way too long to launch
jeff at jmcneil.net
Tue Mar 13 18:28:51 CET 2007
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
timestamps say from initial hit until last-byte from your Python script?
Might want to validate your Apache configuration and have a look at
httpd.apache.org. Sounds to me like DNS lookups are enabled or something of
On 3/13/07, Josh Bloom <joshbloom at gmail.com> wrote:
> 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.
> On 3/13/07, Teresa Hardy < thardy99 at gmail.com> wrote:
> > I have a webpage calling a python script, using Apache
> > server....http://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 just
> > launches a Flash file. I benchmarked the time thru the python code and it
> > isn't the slow part. It's the launch. Forgive me if I am not explaining this
> > well. I am pretty much teaching myself...fumbling thru the process.
> > Any suggestions on how to speed up the first step?
> > Thanks,
> > Teresa
> > --
> > http://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list