This is a pretty tight loop:
for i in xrange(1000000):
f1.seek(0)
But there is still a lot going on, some of which you can lift out of
the loop. The easiest I can think of is the lookup of the 'seek'
attribute on the f1 object. Try this:
f1_seek = f1.seek
for i in xrange(1000000):
f1_seek(0)
How does that help your timing?
-- Paul
--
http://mail.python.org/mailman/listinfo/python-list
