[Zope] Efficiency of "Script (Python)" versus External Method

Chris Withers chris at simplistix.co.uk
Fri Jun 16 02:18:16 EDT 2006


Andrew Hedges wrote:
> Is there a difference in the efficiency of a function as a "Script 
> (Python)" Zope object versus an External Method?  The use case is that I 
> need to run a fairly simple function (an implementation of the 
> Levenshtein distance algorithm) over a result set in the range of 30-40k 
> records.  Are the two implementations close enough that I should just 
> not worry about it or would you expect I would see a significant 
> difference between the two?

Go for an external method. Python scripts have a lot of security 
checking which will slow you down...

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope mailing list