in reply to Optimisation isn't a dirty word.
What people caution against is a knee-jerk type of optimization where a coder dives into an algorithm and emerges with a few more micro-seconds and a blob of horribly unmaintainable code.
Rather, code it cleanly and correctly from the start. If it's too slow (quantify and measure that), consider faster hardware first, it's usually cheaper than coder time over the long run. If your hardware is already good, identify the source of the majority of the slowness. Once you have metrics that point at your target, optimize that code with appropriate commenting to explain what you are doing and why. Re-test and verify you've made it fast enough.
So optimization isn't bad, it's just not the first thing you should jump on when something seems slow.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Optimisation isn't a dirty word.
by Perl Mouse (Chaplain) on Oct 25, 2005 at 16:16 UTC | |
by Anonymous Monk on Oct 25, 2005 at 16:59 UTC | |
by tirwhan (Abbot) on Oct 25, 2005 at 18:07 UTC | |
by Anonymous Monk on Oct 25, 2005 at 21:45 UTC | |
by cbrandtbuffalo (Deacon) on Oct 26, 2005 at 13:26 UTC |