home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 823 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  39 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: news.nic.surfnet.nl!hhinsi!news
  3. From: robv@si.hhs.nl (Veer)
  4. Subject: Re: Amiga programmers in deep shit...
  5. Message-ID: <DL0MMD.FCz@si.hhs.nl>
  6. Sender: news@si.hhs.nl
  7. Reply-To: robv@si.hhs.nl
  8. Organization: Sector Informatica, Haagse HogeSchool, the NetherLands
  9. References: <4d0r7l$i4i@maureen.teleport.com>
  10. Date: Thu, 11 Jan 1996 11:59:00 GMT
  11.  
  12. In article i4i@maureen.teleport.com, sschaem@teleport.com (Stephan Schaem) writes:
  13. > : The DoLotsOfSmallReads program consists of nothing more than this:
  14. > :   do {
  15. > :     WaitTOF();
  16. > :     Read(fh,&buffer,512);
  17. > :   } while(result==512)
  18. > : (I wrote it in ASM so the code above may not be correct :-) I used ASM because
  19. > : I had to do several tests, and I don't want to wait 2 minutes for every
  20. > : re-compile :-))
  21.  
  22. The problem in using this routine is that your Read() command is buffered. So
  23. when you've read the entire buffer, a burst of disk operation might kill your
  24. statistics.
  25.  
  26. CYa,
  27.  
  28.     Rob.
  29.  
  30. ---
  31. Think about this for a while:
  32.  
  33. Only fools can develop fool-proof applications.
  34.  
  35.  
  36.  
  37.