16 Jun
2006
16 Jun
'06
6:18 a.m.
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