home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9287 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.1 KB  |  24 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!gatech!destroyer!ubc-cs!newsserver.sfu.ca!sfu.ca!gay
  3. From: gay@selkirk.sfu.ca (Ian D. Gay)
  4. Subject: Re: Fast floppy writing techniques
  5. Message-ID: <gay.716251008@sfu.ca>
  6. Sender: news@sfu.ca
  7. Organization: Simon Fraser University, Burnaby, B.C., Canada
  8. References: <BuFK8q.71s@DMI.USherb.CA>
  9. Date: Fri, 11 Sep 1992 22:36:48 GMT
  10. Lines: 12
  11.  
  12. famus2@DMI.USherb.CA (Projet2 Famus) writes:
  13.  
  14. >>>Hi, I was wondering if anyone has C code for fast file writing to floppies.
  15. >>>The application that I'm writing compresses the data before writing to disk,
  16. >>>but the bottleneck is the floppy.  I'm currently trying to optimize disk
  17. >>>writing by using a technique similar to XCOPY, but if I had code that
  18. >>>resembled XCOPY already written that might help me meet my deadline.
  19. >                                                  
  20. You didn't say what compiler you were using, or how you were doing the 
  21. writes. I have found stream i/o (fopen() etc) to go about 3x faster to 
  22. floppies with Turbo C, using setvbuf() to set a 4k buffer, instead of taking 
  23. the default. I would expect the gain to be less using open() and friends.
  24.