Python running quite slow to find a TextElement

Discussion created by luzhenyu on Sep 20, 2012
Latest reply on Sep 25, 2012 by jbarrette-esristaff

Does anyone encountered an issue that the python code run very slow at some time?
I have a Python code which was used to export maps in a batch manner. It used to take 15 minutes to finish, some of the times it took more than 2 hours. I checked the reason for slow, I found that the code used more than 5 minutes to find one TextElement which used to take less than 1 second.
Please let me know if you ran into a similar issue before and how you solved it.
Thank you so much,