[issue15758] FileIO.readall() has worst case O(n^2) complexity

Richard Oudkerk report at bugs.python.org
Thu May 16 17:21:03 CEST 2013


Richard Oudkerk added the comment:

I have done an updated patch.  It no longer special cases Windows, so realloc() is always used for enlarging the buffer (except when fstat() is missing).

Antoine, do you think this is ready to commit?

----------
Added file: http://bugs.python.org/file30287/readall.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15758>
_______________________________________


More information about the Python-bugs-list mailing list