Mail Archives: djgpp/1992/11/24/16:57:17
>So the probelm is easyily fixed, or kludged, by a simple construct:
>everytime you call fopen
>fp=fopen(...);
>you can add the lines
>fp->_base=somebuffer;
>fp->_bifsiz=somebuffer_size;
>where somebuffer is just some buffer you allocate. (4096 appears to be
>a good number for the buffer size).
You could probably get the same effect by using the setbuf() (Or one of
its variants) function.
>Q1) do we want to change djcc to do this all the time?
Probably so. Or, people could get into the habit of using setbuf() all
the time.
>BTW, split and merge from the standard distribtion exhibit this
>slow performance.
They shouldn't. As far as I know, they were compiled with Borland C.
- Raw text -