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