[Zope] slow python scripts

Dieter Maurer dieter at handshake.de
Sun Oct 19 12:34:11 EDT 2003


D. Rick Anderson wrote at 2003-10-15 17:00 -0700:
 > I have a few python scripts that are parsing 4000+ record CSV files, and 
 > they are DOG slow. They take over 140 seconds to complete (that's an 
 > eternity to wait for a web page to load). What's driving me nuts is that 
 > the same code, in a straight python file, fires off and completes in 
 > under 2 seconds using the same CSV file. How can I speed up the Python 
 > script on my server? Are external methods faster?

External Methods are considerably faster as they do not make the
costly security checks on each attribute access.


Dieter



More information about the Zope mailing list