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