Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.lang.c Subject: Re: Microoptimisations (Was Re: Efficient way to transform float to string) Message-ID: <5020:Dec1206:09:3790@kramden.acf.nyu.edu> Date: 12 Dec 90 06:09:37 GMT References: <5906@stpstn.UUCP> <13045@ganymede.inmos.co.uk> Organization: IR Lines: 12 In article <13045@ganymede.inmos.co.uk> conor@inmos.co.uk (Conor O'Neill) writes: > A smart programmer will leave this sort of micro-optimisation to the > compiler. No. A smart programmer will consider each optimization on its own merits. Some optimizations will hurt more than they help, and the programmer will leave them to the compiler for each machine. Some optimizations are worth a conditional definition. Some optimizations are always worthwhile. Only a blind programmer will ignore hand optimization if he cares about efficiency. ---Dan