O'Reilly logo

SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION by Jesse Liberty

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

Summing Up

Performance optimization can only be performed starting with a well-crafted and maintainable object-oriented program. Given that, you should perform careful timings to make sure you've isolated the actual source of the performance problem. Once you have a target, C++ offers some language features that may help.

Once you have made changes, you need to rerun your tests to determine whether they have had any effect.

However, keep in mind that many performance problems result from problems with your program logic or from overhead accessing files or databases. There are numerous texts on algorithms that discuss the relative speeds of alternate approaches to specific programming challenges and you should make sure to consult those as well ...

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