www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/09/10/21:33:10

Date: Wed, 10 Sep 1997 21:33:08 -0400 (EDT)
Message-Id: <199709110133.VAA28172@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: Vik DOT Heyndrickx AT rug DOT ac DOT be
CC: djgpp-workers AT delorie DOT com
In-reply-to: <3416C026.132B@rug.ac.be> (message from Vik Heyndrickx on Wed, 10
Sep 1997 17:43:34 +0200)
Subject: Re: fread slowstart

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

If we just read 512 bytes twice, scaling by powers of two each time
will automatically keep everything on power-of-two boundaries.

	read	total
	 512	 512
	 512	1024
	1024	2048
	2048	4096
	4096	8192

etc.

- Raw text -


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