My product is performing incredibly badly. I profiled it and got the following results: ncalls tottime percall cumtime percall filename:lineno(function) ...<snip>... 4/1 0.010 0.003 6.360 6.360 WebFactory.py:92(change_theme) 37/6 0.440 0.012 6.330 1.055 CopySupport.py:426(_getCopy) 37/6 0.710 0.019 6.270 1.045 ExportImport.py:126(importFile) 38 0.020 0.001 1.930 0.051 BaseStorage.py:200(tpc_finish) 38 1.910 0.050 1.910 0.050 FileStorage.py:768(_finish) For each folder in the instance, a method change_theme() is called recursively on each of its subfolders. The culprit appears to be the _getCopy call, which in turn calls importFile, and takes a whole second to call each time. The object being copied is in each case typically a folder containing 3 - 5 documents. Is _getCopy inherently slow, or am I misreading the profiler output, or is it more likely there's something wrong with my code? Cheers, seb _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )