When optimizing code, focus on algorithms firstThis tip submitted by Alex Allain on 2009-04-20 00:30:48. It has been viewed 33475 times.
Rating of 5.7 with 294 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.
Help your fellow programmers! Add a tip!