Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cbosgd!ihnp4!houxm!hropus!jrw From: jrw@hropus.UUCP (Jim Webb) Newsgroups: net.unix Subject: Re: why is fprintf(stderr,) slow? Message-ID: <633@hropus.UUCP> Date: Mon, 18-Aug-86 13:47:07 EDT Article-I.D.: hropus.633 Posted: Mon Aug 18 13:47:07 1986 Date-Received: Tue, 19-Aug-86 08:14:16 EDT References: <19300053@uiucdcsb> Organization: Bell Labs, Holmdel, NJ Lines: 10 > I was doing about 500 fprintf(stderr, "blah...\n"); > > The program was taking 35 or 40 seconds of system time which was pretty > high. I then commented out the fprintf's and the program took 17 or 18 > system time seconds (it was doing a lot of disk accesses). Standard error is unbuffered, eg, one char at a time, so it makes one write system call per character, hence its slowness. -- Jim Webb "Out of phase--get help" ihnp4!houxm!hropus!jrw