www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/11/24/16:57:17

Date: Tue, 24 Nov 92 15:00:01 CST
From: "George Jetson" <pynq AT midway DOT uchicago DOT edu>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: slow floppy performance

>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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019