In <[email protected]>, on 08/13/2010
at 12:52 PM, john gilmore <[email protected]> said:
>Optimization is enormously useful, but it does not deal in radical
>changes of algorithms.
FSVO radical.
>It transforms locally poor constructs
You're describing peephole optimization, not the general case.
>It does no root and branch replacements of algorithms by other,
>globally better ones.
But it does do a lot of things beyond peephole optimization.
>The injunction 'optimize it [away]' is often misused in the same
>fashion.
Yes, but there are things that a good compiler will optimize away.
It's best to write code that is readable and maintainable before
worrying about performance.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT
ISO position; see <http://patriot.net/~shmuel/resume/brief.html>
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html