#!/usr/local/bin/python2 import xml.etree.ElementTree as et r = et.XML('') for i in xrange(10000): for c in r.iter(): pass