[pypy-issue] [issue1527] Universal Newlines in pypy are extremely slow

Lefteris Stamatogiannakis tracker at bugs.pypy.org
Thu Jul 4 12:07:43 CEST 2013


New submission from Lefteris Stamatogiannakis <estama at gmail.com>:

When reading a text file with the universal newline option in open, pypy can be up to ~200 
times slower than CPython.

Test code:

f=open('textfile.txt', 'rU')

totalLen = 0
for l in f:
    totalLen += len(l)
print(totalLen)

----------
messages: 5904
nosy: estama, pypy-issue
priority: performance bug
status: unread
title: Universal Newlines in pypy are extremely slow

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1527>
________________________________________


More information about the pypy-issue mailing list