home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: news.nic.surfnet.nl!hhinsi!news
- From: robv@si.hhs.nl (Veer)
- Subject: Re: Amiga programmers in deep shit...
- Message-ID: <DL0MMD.FCz@si.hhs.nl>
- Sender: news@si.hhs.nl
- Reply-To: robv@si.hhs.nl
- Organization: Sector Informatica, Haagse HogeSchool, the NetherLands
- References: <4d0r7l$i4i@maureen.teleport.com>
- Date: Thu, 11 Jan 1996 11:59:00 GMT
-
- In article i4i@maureen.teleport.com, sschaem@teleport.com (Stephan Schaem) writes:
- > : The DoLotsOfSmallReads program consists of nothing more than this:
- >
- > : do {
- > : WaitTOF();
- > : Read(fh,&buffer,512);
- > : } while(result==512)
- >
- > : (I wrote it in ASM so the code above may not be correct :-) I used ASM because
- > : I had to do several tests, and I don't want to wait 2 minutes for every
- > : re-compile :-))
-
- The problem in using this routine is that your Read() command is buffered. So
- when you've read the entire buffer, a burst of disk operation might kill your
- statistics.
-
- CYa,
-
- Rob.
-
- ---
- Think about this for a while:
-
- Only fools can develop fool-proof applications.
-
-
-
-