O'Reilly logo

Efficient C++ Performance Programming Techniques by David Mayhew, Dov Bulka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Key Points

  • Inlining can improve performance. The goal is to find a program's fast path and inline it, though inlining this path may not be trivial.

  • Conditional inlining prevents inlining from occuring. This decreases compile-time and simplifies debug during the earlier phases of development.

  • Selective inlining is a technique that inlines methods only in some places. It can offset some of the code size explosion potential of inlining a method by inlining method calls only on performance-critical paths.

  • Recursive inlining is an ugly but effective technique for improving the performance of recursive methods.

  • Care needs to be taken with local static variables.

  • Inlining is aimed at call elimination. Be sure of the real cost of calls on your system before ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required