Is it possible to fasten the import of cgi?

Cecil Westerhof dummy at dummy.nl
Thu Jan 18 14:23:10 CET 2007


Daniele Varrazzo wrote:

> Cecil Westerhof 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.
> 
> Does the hosting provider support fastcgi? It would avoid starting the
> interpreter at each request too.

I am afraid not. It is very bare bone. Also they do not really support
python. (When they had a problem, perl and bash scripts worked within a
day, python scripts had to wait for one and a halve week.)

I am thinking about switching my provider. What are important things to keep
in mind when selecting another one?




More information about the Python-list mailing list