]> granicus.if.org Git - python/commit
Speed up read() (i.e. read till EOF) considerably by doing a stat() to
authorGuido van Rossum <guido@python.org>
Fri, 9 May 1997 22:27:31 +0000 (22:27 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 9 May 1997 22:27:31 +0000 (22:27 +0000)
commit5449b6e123825fe8e37402cb28ab377dd662bb1e
treeccd3a3bc1790984cd80d4b47e1269320a36348c0
parent5878b662de976e55dbb502752608cade58372b7a
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.
Objects/fileobject.c