Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!mordor!sri-spam!rutgers!rochester!srs!matt From: matt@srs.UUCP (Matt Goheen) Newsgroups: comp.arch Subject: Re: Approaches to computer system performance Message-ID: <580@srs.UUCP> Date: 1 Feb 88 14:18:39 GMT References: <839@ima.ISC.COM> <2158@geac.UUCP> <604@bnr-rsc.UUCP> <180@granite.dec.com> <3081@watcgl.waterloo.edu> <578@srs.UUCP> Reply-To: matt@srs.UUCP (Matt Goheen) Organization: S.R. Systems, Rochester NY Lines: 23 Keywords: Algorithms, assembler Summary: Assembly CAN help... In article <578@srs.UUCP> dan@rem.UUCP (Dan Kegel) writes (pretty much): >In article <3081@watcgl.waterloo.edu> tbray@watsol.waterloo.edu writes (sorta): >> Given a routine which is sucking up a lot of your resources, how much >> can you gain by hand-coding in assembler? >> >>Algorithms si! Low-level hacking no! >>Tim Bray, New OED Project, University of Waterloo > >Yes... but lots of people are that lucky, and sometimes the payoff is great. >I recently rewrote a self-recursive procedure to pass all parameters in >registers, yielding a 2x speedup. >-- > Dan Kegel Must agree with Dan here. A few months ago I was writing an approximate integer square root routine. I found that the assembly version was more than 3 times faster than the cafefully coded C routine... -- -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- - UUCP: {allegra,rutgers,ames}!rochester!srs!matt Matt Goheen - - "First the pants, THEN the shoes." S.R. Systems - -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-