Server-side script takes way too long to launch

Josh Bloom joshbloom at gmail.com
Tue Mar 13 18:12:35 CET 2007


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/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...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070313/aac69a6a/attachment.html>


More information about the Python-list mailing list