Are External Methods faster than Python Scripts?
I have a few complex methods (DTML skins ) which execution causes Zope to become slow. As a result it can take from 4 to 10 seconds to respond a single request to any of those methods, on a Win2K Pentium200 test box plenty of RAM, and that's bad for an application meant to support up to 20 requests at the same time, whatever the destination hardware could be. (Caching wouldn't help because they are methods related to personalization stuff) Facing the step of translating those methods into Python Scripts, I'm considering the use of External Methods instead. Are they faster than Scripts? Has anyone made performance comparisons between the different existing types of scripts, in order to optimize Zope's performance? Thanks in advance, Ausum
Facing the step of translating those methods into Python Scripts, I'm considering the use of External Methods instead. Are they faster than Scripts? Has anyone made performance comparisons between the different existing types of scripts, in order to optimize Zope's performance?
I don't have any numbers one the difference but the difference between Python Scripts and External Methods is that Python Scripts have security checks. That means that if you call something protected in a Python Script the little login dialog might appear. The same wouldn't happen in an external method. The security checks takes time of course but security is a good thing. External Methods should only be used for the little odd things that Python Scripts can't do. See previous thread this week concerning time.sleep() Peter
participants (2)
-
Ausum Studio -
Peter Bengtsson