[issue3531] file read preallocs 'size' bytes which can cause memory problems
Anthon van der Neut
report at bugs.python.org
Thu Sep 11 11:37:50 CEST 2008
Anthon van der Neut <anthon at mnt.org> added the comment:
FWIW:
I have performance problems on Windows XP (SP2) with Python 2.5.1 that
could be caused by this behaviour.
My code regularily calculates the sha1 sum of 10.000 files and because
in another reuse of the code had to deal with files too big to fit in memory
I set a limit of 256Mb. It looks like that is now allocated and
deallocated for every one of the 10.000 files, making things *very* slow.
----------
nosy: +anthon
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3531>
_______________________________________
More information about the Python-bugs-list
mailing list