www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/09/10/11:46:12

Sender: vheyndri AT rug DOT ac DOT be
Message-Id: <3416C026.132B@rug.ac.be>
Date: Wed, 10 Sep 1997 17:43:34 +0200
From: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Mime-Version: 1.0
To: DJ Delorie <dj AT delorie DOT com>
Cc: djgpp-workers AT delorie DOT com
Subject: Re: fread slowstart
References: <199709090234 DOT WAA00084 AT delorie DOT com>

DJ Delorie wrote:

> Also, I've changed the default transfer buffer size to 32k and stack
> size to 512k in stub.asm.  Should we default to a max size (63.5K)
> transfer buffer now ?

DOS internally reads clusters at a time. Since the maximum cluster size
is 16384, I think, and we don't want DOS buffer our data the TB size
should be a multiple of 16384 (2x or 3x) and any read should concur with
this limit. e.g. reading 32 times 512 bytes and then switch to 16384
reads.

Or reading 16 times 512 bytes = 8192
            8       1024      = 8192
           -------------------------
                               16384

Or reading 8 times 512, 4 times 1024, 2 times 2048, once 4096 and then
in chunks of 16384 ?

-- 
+----------------+
| Vik Heyndrickx |
+----------------+

- Raw text -


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