[mod_python] PHP is to Zend as ModPython is to ???

Ben Leslie benno at sesgroup.net
Sun Apr 22 09:58:04 EST 2001


On Sat, 21 Apr 2001, deneb at unixwave.org wrote:

> On Sat, Apr 21, 2001 at 10:16:17PM +1000, Ben Leslie wrote:
> > Explain how you can get better performance with some mythical mod_python
> > database module vs native python module? Personally I think any speedup 
> > woudl be very marginal and not worse the extreme cost of code duplication
> > etc.
> 
> Writing for example the MySQLdb module inside mod_python ;-).
> Simply in my projects I don't care about code duplication.

Well to be blunt I think that is pretty silly. You're yet to explain how
you would be able to achieve a speed up by having a module "inside" mod_python
versus putting "import MySQLdb" at the top of you handler. The handler is 
only started once so the extra milliseconds loading a module is irrelevant.

Next you'll be saying you want special regexp handling libraries and special
string handling libraries "inside" mod_python.

If mod_python ever does get a MySQLdb module inside it I will be the first
to fork the porject. (Not that I think Grisha would ever let it happen in
the first place).

Benno



More information about the Mod_python mailing list