Optimized C++: Proven Techniques for Heightened Performance

· "O'Reilly Media, Inc."
4.0
4 reviews
Ebook
388
Pages
Eligible

About this ebook

In today’s fast and competitive world, a program’s performance is just as important to customers as the features it provides. This practical guide teaches developers performance-tuning principles that enable optimization in C++. You’ll learn how to make code that already embodies best practices of C++ design run faster and consume fewer resources on any computer—whether it’s a watch, phone, workstation, supercomputer, or globe-spanning network of servers.

Author Kurt Guntheroth provides several running examples that demonstrate how to apply these principles incrementally to improve existing code so it meets customer requirements for responsiveness and throughput. The advice in this book will prove itself the first time you hear a colleague exclaim, “Wow, that was fast. Who fixed something?”

  • Locate performance hot spots using the profiler and software timers
  • Learn to perform repeatable experiments to measure performance of code changes
  • Optimize use of dynamically allocated variables
  • Improve performance of hot loops and functions
  • Speed up string handling functions
  • Recognize efficient algorithms and optimization patterns
  • Learn the strengths—and weaknesses—of C++ container classes
  • View searching and sorting through an optimizer’s eye
  • Make efficient use of C++ streaming I/O functions
  • Use C++ thread-based concurrency features effectively

Ratings and reviews

4.0
4 reviews
Peter Österlund
May 11, 2017
The book contains quite a bit of useful information but it also contains some annoying inaccuracies. For example the author uses non standard terminology like "time cost" instead of time complexity. The fact that the logarithm base (2) is included in big O notation indicates that the author has an incomplete understanding of time complexity.
3 people found this review helpful
Did you find this helpful?
Logan Smith
June 11, 2023
lovely 🌹
Did you find this helpful?
Mr Omprakash sahani
June 27, 2022
Lauda
Did you find this helpful?

About the author

A career technologist with broad experience in software development, Kurt has exceptional experience and skills in early stages of product development including market research, user needs analysis, and architectural design. In addition, Kurt has very deep C++ development experience. He currently works as a Software Engineer at iStreamPlanet.

Rate this ebook

Tell us what you think.

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.