commit | 5449b6e123825fe8e37402cb28ab377dd662bb1e | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri May 09 22:27:31 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri May 09 22:27:31 1997 +0000 |
tree | ccd3a3bc1790984cd80d4b47e1269320a36348c0 | |
parent | 5878b662de976e55dbb502752608cade58372b7a [diff] |
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.