When optimizing code, focus on algorithms first
This tip submitted by Alex Allain on 2009-04-20 00:30:48. It has been viewed 19061 times.
Rating of 7.2 with 200 votes
When you are trying to optimize your program, focus first on the algorithms that you are using. If you are using a slow algorithm, you will get a much faster speedup by fixing that, than you will making micro-optimizations like unrolling loops.
More tips
Help your fellow programmers! Add a tip!