www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/15/11:17:22

To: babcock AT cfa DOT harvard DOT edu
Cc: olly AT mantis DOT co DOT uk, djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Speed tuning programs
Date: Mon, 15 Aug 94 17:21:31 +0300
From: eliz AT is DOT elta DOT co DOT il

> If you are doing a lot of I/O, it might help to use setbuf() or setvbuf() to
> enlarge the buffers.  I've seen this make a dramatic improvement for programs
> which do little more than copy a file.  Of course, this suggestion applies to
> both the BCC and the djgpp versions.

For DJGPP, I don't see how this could help.  First, DJGPP reads and
transfers data between real and protected modes in chunks of 4KBytes.
Thus, growing the input buffer to more than 4KB won't get you anywhere.
Second, if you have a disk cache installed (and everybody should 
nowadays), it reads ahead for you anyhow.

	Eli Zaretskii

- Raw text -


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