Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site valid.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!pesnta!valid!pete From: pete@valid.UUCP (Pete Zakel) Newsgroups: net.lang.c Subject: Re: Re: fast code and no morals Message-ID: <68@valid.UUCP> Date: Sat, 25-Jan-86 01:04:49 EST Article-I.D.: valid.68 Posted: Sat Jan 25 01:04:49 1986 Date-Received: Sun, 26-Jan-86 17:08:30 EST References: <842@megaron.UUCP> <1820@brl-tgr.ARPA> Distribution: net Organization: Valid Logic, San Jose, CA Lines: 17 > > Here's a version of calloc that breaks every rule of "structured" > > programming ever invented -- and runs about twice as fast as a > > vanilla version: > > > > [fast code] > > So what? This can be written "structured", and would be more > maintainable if it were. Surely this is not an example of > recommended practice? Sure is recommended if you are optimizing for speed, which is what I assume is being done here. Since calloc is part of the system, and is assumed to not have to be changed, maintainability is not the question. Speed is the answer. "What do you get when you multiply 6 by 9?" -Pete Zakel (..!{hplabs,amd,pyramid,ihnp4}!pesnta!valid!pete)