Author beazley
Recipients beazley, christian.heimes
Date 2008-12-06.12:30:26
SpamBayes Score 5.84151e-08
Marked as misclassified No
Message-id <>
I've done some profiling and the performance of reading line-by-line is 
considerably worse in Python 3 than in Python 2.  For example, this 

for line in open("somefile.txt"):

Ran 35 times slower in Python 3.0 than Python 2.6 when I tested it on a 
big text file (100 Megabytes).   If you disable Unicode by opening the 
file in binary mode, it runs even slower.

This slowdown is really unacceptable for anyone who uses Python for 
parsing big non-Unicode text files (and I would claim that there are 
many such people).
Date User Action Args
2008-12-06 12:30:27beazleysetrecipients: + beazley, christian.heimes
2008-12-06 12:30:27beazleysetmessageid: <>
2008-12-06 12:30:26beazleylinkissue4561 messages
2008-12-06 12:30:26beazleycreate