Is it possible to fasten the import of cgi?

Cecil Westerhof dummy at dummy.nl
Fri Jan 19 12:19:04 EST 2007


BJörn Lindqvist wrote:

> On 1/18/07, Cecil Westerhof <dummy at dummy.nl> wrote:
>> I have a cgi-script dat uses the modules cgi, os, sys and time. Offcourse
>> I can not time the time used to import time, but os and sys do not take
>> more as a millisecond. My script itself takes 3 or 4 milliseconds. But
>> importing cgi takes 95 milliseconds. (This is on my test system a PII 300
>> MHz. Is there a way to make this more fast? The import off cgi makes the
>> script at least 20 times as slow. Something like mod-python is not a
>> possibility. I could use it on my test machine, but not at the osting
>> provider.
> 
> Maybe python-launcher-daemon can help you?
> http://blogs.gnome.org/view/johan/2007/01/18/0 But if you can not use
> mod_python then you probably can not use any long running processes
> either.

By my current provider I can not use this. But I am going to look for
another. What are the pro's en cons off the different systems? FastCGI,
PyApache, mod_pythion and maybe others I am not aware off.




More information about the Python-list mailing list