www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/06/12/20:26:27

Date: Fri, 13 Jun 1997 12:27:37 -0700
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: Re: size of stdio buffer
To: DJ Delorie <dj AT delorie DOT com>
Cc: djgpp-workers AT delorie DOT com
Reply-to: billc AT blackmagic DOT tait DOT co DOT nz
Message-id: <33A19F29.31E@blackmagic.tait.co.nz>
Organization: Tait Electronics NZ
MIME-version: 1.0
References: <199706122259 DOT SAA21535 AT delorie DOT com>

DJ Delorie wrote:
> 
> Would it make sense to have stdio's buffer fill dynamic - start at 512
> bytes, and double with each read() (up to BUFSIZ) but reset on each
> lseek() ?

Sounds reasonable. I take it the buffer is still static (just the amount
used changes) as having a dynamic buffer would be bad for speed and
memory usage.

Bill
-- 
Leave others their otherness.

- Raw text -


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