like mod_python but in the kernel????

"Martin v. Löwis" martin at v.loewis.de
Fri Feb 6 08:00:44 CET 2004


Camilo Olarte wrote:
> If python cgi scripts can be acceletaded by means of mod_python in apache
> (loading the python interpreter on apache)  , then : ?Is there a way of doing
> the same but with linux kernel...  and command line scripts ?

No. mod_python reduces startup speed because it performs all the import
actions that occur when Python starts. The same is not possible with the
command line, as memory that the kernel allocates is not accessible to
applications.

> I mean can python interpreter be loaded as module of the kernel and thus making
> execution of python scripts faster ???

No !!! Instead, to reduce startup time, you need to first find out why
startup is slow. There are many theories; mine is that usage of shared
libraries for extension module increases startup time.

> Is there something perverse in this way of thinking????

No!!!! Just in your usage of punctuation :-)

Regards,
Martin




More information about the Python-list mailing list