[BangPypers] cgi help

Senthil Kumaran orsenthil at gmail.com
Wed Oct 6 12:57:55 CEST 2010


On Wed, Oct 06, 2010 at 04:18:05PM +0530, Noufal Ibrahim wrote:

> Also, Python CGI is a really archaic way to go. 

Yes, this is true. The modern way of doing this is called WSGI, which
is not as easy as CGI to being with, but people do get used to it.

> The interpreter startup
> time is quite high. If you *must* use CGI, consider another language
> like Perl.

Even for Perl, you will have to load the interpretor. So, it is a
heavy weight operation if you involve any scripting language.

I just got curious to see if this heavy weight operation can be
reduced. Looks like it can be. 

>From wikipedia:
The overhead involved in interpretation may be reduced by using
compiled CGI programs, such as those in C/C++, rather than using Perl
or other scripting languages. The overhead involved in process
creation can be reduced by solutions such as FastCGI, or by running
the application code entirely within the web server using special
extension modules.



-- 
Senthil

It is better to die on your feet than to live on your knees.


More information about the BangPypers mailing list