List of common C++ Optimization Techniques
c, c++, g++, gcc, optimization
Solution
Two ways to write better programs:
Make best use of language
- Code Complete by Steve McConnell
- Effective C++
- Exceptional C++
profile your application
- Identify what areas of code are taking how much time
- See if you can use better data structures/ algorithms to make things faster
There is not much language specific optimization one can do - it is limited to using language constructs (learn from #1). The main benefit comes from #2 above.
Problem
Can I have a great list of common C++ optimization practices? What I mean by optimization is that you have to modify the source code to be able to run a program faster, not changing the compiler settings.