Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!houxm!vax135!cornell!uw-beaver!tektronix!decvax!cca!ima!haddock!stevel From: stevel@haddock.UUCP Newsgroups: net.unix Subject: Re: Speed of read vs. fread Message-ID: <320@haddock.UUCP> Date: Tue, 22-Jan-85 23:56:17 EST Article-I.D.: haddock.320 Posted: Tue Jan 22 23:56:17 1985 Date-Received: Fri, 25-Jan-85 21:28:18 EST Lines: 13 Nf-ID: #R:ihlts:-62600:haddock:16700038:000:484 Nf-From: haddock!stevel Jan 22 15:48:00 1985 > SIZE NAME COMMENT > 6144 fgetputc using fgetc and fputc with stdio > 7168 freadwrite using fread and fwrite BUFSIZ blocks with stdio > 6144 getputc using getc and putc (macros) with stdio > 5120 readwrite using read and write BUFSIZ blocks (no stdio) If you read/write in increments of other than BUFSIZ you will notice fread/fwrite should be faster. Try read/write in increments of 1 char. Steve Ludlum, decvax!yale-co!ima!stevel, {amd|ihnp4!cbosgd}!ima!stevel