3. Using the C++ Compiler Options
6. Creating and Using Templates
9.1 Avoiding Temporary Objects
9.4.1 Choosing to Pass Classes Directly
9.4.2 Passing Classes Directly on Various Processors
10. Building Multithreaded Programs
12. Using The C++ Standard Library
13. Using the Classic iostream Library
You can improve the performance of C++ functions by writing those functions in a manner that helps the compiler do a better job of optimizing them. Many books have been written on software performance in general and C++ in particular, and this chapter does not repeat such valuable information, but discusses only those performance techniques that strongly affect the C++ compiler.