Chapter 9: High-Performance C++

In this chapter, we switch focus from the optimal use of the hardware resources to the optimal application of a particular programming language. While everything we have learned so far can be applied, usually quite straightforwardly, to any program in any language, this chapter deals with C++ features and idiosyncrasies. You will learn which features of the C++ language are likely to cause performance problems and how to avoid them.

In this chapter, we’re going to cover the following main topics:

  • Efficiency and overhead of the C++ language
  • Learning to notice likely inefficiencies in the use of C++ language constructs
  • Avoiding inefficient C++ code
  • Optimizing memory access and conditional operations

Technical ...

Get The Art of Writing Efficient Programs now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.