Microoptimisations (Was Re: Efficient way to transform float to string)
Dan Bernstein
brnstnd at kramden.acf.nyu.edu
Wed Dec 12 17:09:37 AEST 1990
In article <13045 at ganymede.inmos.co.uk> conor at 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
More information about the Comp.lang.c
mailing list