411 REFERENCE · Wikibooks
Optimizing C++/Code optimization
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
In this chapter some techniques, specific for C++ language, are proposed.
They are to be applied only in bottlenecks, as, although they may speed up execution, they also make more complex and less maintainable the source code.
In addition, such guidelines in some cases could worsen the performance instead of improving it, and therefore their effect should be always measured before releasing them.
The optimization techniques are grouped according their goal.
Allocations and deallocations
Run-time support
Instruction count
Constructions and destructions
Pipeline
Memory access
Faster operations
Compile time optimization
it:Ottimizzare C++/Ottimizzazione del codice C++