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

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewse!cbnewsd!att-out!cbfsb!cbnewsg.cb.att.com!rnichols
  3. From: rnichols@cbnewsg.cb.att.com (robert.k.nichols)
  4. Subject: Re: Fast floppy writing techniques
  5. Message-ID: <1992Sep11.195112.23171@cbfsb.cb.att.com>
  6. Summary: Smartdrv can help -- if you're bold enough to use it
  7. Sender: news@cbfsb.cb.att.com
  8. Organization: AT&T
  9. References: <BuF2p7.CBC@DMI.USherb.CA>
  10. Date: Fri, 11 Sep 1992 19:51:12 GMT
  11. Lines: 30
  12.  
  13. In article <BuF2p7.CBC@DMI.USherb.CA> famus2@DMI.USherb.CA (Projet2 Famus) writes:
  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.  
  21. Enabling SMARTDRV's write-behind cache for the floppy drive can
  22. give dramatic improvement.  BUT, you have to be brave and bold to
  23. try it, and careful enough not to snatch the floppy from the drive
  24. as soon as you application thinks it's done, because SMARTDRV may
  25. still be writing for a while.
  26.  
  27. I often do this ("smartdrv a+") when copying a large number of files
  28. to a floppy.  It saves all the seeking back and forth between the
  29. directory and the user data area.  With 2MB of cache (when not in
  30. Windows), the copy operation runs at the speed of the hard drive and
  31. completes; the floppy is still tick, tick, ticking along writing tracks
  32. as fast as possible.  I wait for a "smartdrv /c" to return before
  33. removing the floppy, and all is well.  (I also do a "smartdrv a" to get
  34. back into a safer mode.)
  35.  
  36. It should be possible to get this behavior from within an application,
  37. but I know of no other way than loading and executing SMARTDRV with
  38. the apropriate parameters, and a large app. probably wouldn't have
  39. enough memory available to do this.
  40.  
  41. Bob Nichols
  42. rnichols@ihlpm.ih.att.com
  43.