delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/17/18:18:14

Date: Mon, 17 Jan 94 17:45:39 -0500
From: DJ Delorie <dj AT ctron DOT com>
To: hj AT vpymza DOT sowi DOT uni-mainz DOT de
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Data rates to disk

> 	char data[1024*2000];
> ...
>
> 	write(path,data,sizeof(data));

Because you're in protected mode, this request must be broken up into
smaller requests (4K at the moment) for DOS to handle.  You can speed
this up by using _go32_dpmi_simulate_interrupt() directly, with a
larger transfer buffer.

> This takes about 12 seconds on my PC, even though I have set buffers to 99.

99 buffers is still a lot smaller than the 2Mb chunk you're trying to
write!


- Raw text -


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