[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ossig] Zope faster than Apache?



Are programs written totally in C necessarily faster than programs written in Python plus a few C modules? This is something I've been thinking about and here is some anecdotal evidence that it's not always so. Of course, it's possible this is an Apache config related issue that Bruce forgot but it's also possible that it's not.


------------------
http://www.artima.com/intv/prodperf.html
Excerpt from Bruce interview:

Take Zope, for example. Zope is the enterprise application server I use for my website. Zope is virtually all Python, but includes some C code, because they profiled and optimized Zope so it would run faster. When Zope was put on my machine, I discovered it was noticeably faster than Apache had been. That seemed surprising to me, but my server guy said Apache was designed for correctness and not for speed, so it wasn't that surprising to him. Because Apache was written in C, I figured it ought to be faster. But it turned out Zope was faster.
------------------


A number of the standard modules are in fact written in C for speed of execution. A number of scientific python modules (NumArray/numpy/scipy related stuff) are also written in C. Python allows you to select which modules to optimize in C and which to leave as python using profilers. What this effectively means is that you can develop faster with python _and_ have a faster executing program (once C-optimized, if needed) for delivery. I can have my cake and eat it too. I rather like that...

Regards,
Mukhsein Johari

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers



------------------------------------------------------------
To unsubscribe: send mail to ossig-request@mncc.com.my
with "unsubscribe ossig" in the body of the message