summaryrefslogtreecommitdiffstats
path: root/Lib/dos_8x3/test_ima.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-09 22:27:31 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-09 22:27:31 (GMT)
commit5449b6e123825fe8e37402cb28ab377dd662bb1e (patch)
treeccd3a3bc1790984cd80d4b47e1269320a36348c0 /Lib/dos_8x3/test_ima.py
parent5878b662de976e55dbb502752608cade58372b7a (diff)
downloadcpython-5449b6e123825fe8e37402cb28ab377dd662bb1e.zip
cpython-5449b6e123825fe8e37402cb28ab377dd662bb1e.tar.gz
cpython-5449b6e123825fe8e37402cb28ab377dd662bb1e.tar.bz2
Speed up read() (i.e. read till EOF) considerably by doing a stat() to
see if we can guess the #bytes until the end of the file. If we can't, increment the buffer size increments up to 0.5Meg to avoid realloc'ing too much.
Diffstat (limited to 'Lib/dos_8x3/test_ima.py')
0 files changed, 0 insertions, 0 deletions