This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: optimizing constant ifs out of loop?
- From: lrtaylor at micron dot com
- To: <eljay at adobe dot com>, <gcc-help at gcc dot gnu dot org>
- Date: Wed, 1 Oct 2003 11:28:26 -0600
- Subject: RE: optimizing constant ifs out of loop?
-----Original Message-----
From: Eljay Love-Jensen [mailto:eljay@adobe.com]
>Hi Lyle,
Hey,
> The quote is in reference to micro-optimizations in the programming
> phase of development.
> The quote is not in the context of encouraging a disregard for good
> architecture, design and programming practices.
That may be how it was meant, but I think a lot of people don't limit
its application to that (hence my minor rant), including professors I
had at the university and people I've worked with. What I've seen more
often than not is more the attitude "make it work; then make it work
fast", but without any other consideration for performance during the
"make it work" phase, since they think they can make it work fast
afterward. At that point, they often end up rewriting portions of the
code to fix design issues that inherently limit performance and that
could have been foreseen had then been thinking about performance during
the design phase.
I guess we just need to be sure not to take the quote out of context...
Cheers,
Lyle