Optimizing C++

Audience
This book is for intermediate C++ programmers (i.e. studying C++ for at least one year) who want to improve the performance of the software they develop.

Subject
This book contains guidelines and advices on how to write efficient software using the C++ language. Software correctness and maintainability are taken into account, but are not the primary concerns of the guidelines.

Most of the guidelines presented are not platform specific, and so are applicable to every processor, to every compiler, and to every operating system; the few platform specific advices try to cover most platforms.

Table of Contents

 * 1) Introduction
 * 2) Optimization life cycle
 * 3) Writing efficient code
 * 4) Performance improving features
 * 5) Performance worsening features
 * 6) Constructions and destructions
 * 7) Allocations and deallocations
 * 8) Memory access
 * 9) Thread usage
 * 10) General optimization techniques
 * 11) Input/Output
 * 12) Memoization
 * 13) Sorting
 * 14) Other techniques
 * 15) Code optimization
 * 16) Allocations and deallocations
 * 17) Run-time support
 * 18) Instruction count
 * 19) Constructions and destructions
 * 20) Pipeline
 * 21) Memory access
 * 22) Faster operations
 * 23) Compile time optimization
 * 24) Tools
 * 25) Further reading

Guidelines for editors

Ottimizzare C++