Optimizing C++/General optimization techniques
From Wikibooks, the open-content textbooks collection
In this section we present some of most common techniques for algorithmic optimization. These techniques should be mostly independent from any specific programming language, software or hardware platform. When optimizing, always start by considering different algorithms before resorting to lower-level optimizations to retain generality, maintainability and portability of your code.
Some of the proposed techniques will have an implementation in C++.

