CVS: 'python/dist/src/Objects fileobject.c'

Guido van Rossum guido@monty.CNRI.Reston.Va.US
Fri, 9 May 1997 18:27:33 -0400

Update of /projects/cvsroot/python/dist/src/Objects
In directory monty:/usr/people/guido/python/src/Objects

Modified Files:
Log Message:
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.

--Guido van Rossum (home page: