Xref: utzoo comp.lang.c:28486 comp.lang.misc:4972 comp.sys.ibm.pc:50085 comp.sys.ibm.pc.programmer:1332 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!ames!eos!shelby!lindy!ralerche From: ralerche@lindy.Stanford.EDU (Robert A. Lerche) Newsgroups: comp.lang.c,comp.lang.misc,comp.sys.ibm.pc,comp.sys.ibm.pc.programmer Subject: Re: fast file copying (was questions about a backup program ...) Keywords: copy Message-ID: <9331@lindy.Stanford.EDU> Date: 6 May 90 00:21:52 GMT References: <255@uecok.UUCP> <1990Apr25.125806.20450@druid.uucp> <12578@wpi.wpi.edu> <24164@mimsy.umd.edu> <12642@wpi.wpi.edu> <1990May5.043503.22498@athena.mit.edu> Sender: ralerche@lindy.Stanford.EDU (Robert A. Lerche) Reply-To: ralerche@lindy.Stanford.EDU (Robert A. Lerche) Organization: Research Libraries Group Lines: 9 In Microsoft C (and some others), one can use "setvbuf" to attach a large I/O buffer to a stdio-package file. It's sensible to wish for the operating system to do this itself, but in the DOS world, given the 640K memory limit, it's not totally unreasonable to place the memory allocation burden on the application program (since it probably has to worry about tight memory). Using "setvbuf" makes a biiiiiig difference in file I/O performance.