C++ High Performance: Boost and optimize the performance of your C++17 code
Authors: Viktor Sehr – Bjorn Andrist
ISBN-10: 1787120953
ISBN-13: 9781787120952
Publication Date 出版日期: 2018-01-31
Print Length 页数: 374 pages
Publisher finelybook 出版社: Packt
Book Description
By finelybook
Write code that scales across CPU registers,multi-core,and machine clusters
C++ is a highly portable language and can be used to write complex applications and performance-critical code. It has evolved over the last few years to become a modern and expressive language. This book will guide you through optimizing the performance of your C++ apps by allowing them to run faster and consume fewer resources on the device they’re running on. The book begins by helping you to identify the bottlenecks in C++. It then moves on to measuring performance,and you’ll see how this affects the way you write code. Next,you’ll see the importance of data structure optimization and how it can be used efficiently. After that,you’ll see which algorithm should be used to achieve faster execution,followed by how to use STL containers. Moving on,you’ll learn how to improve memory management in C++. You’ll get hands on experience making use of multiple cores to enable more efficient and faster execution. The book ends with a brief overview of utilizing the capabilities of your GPU by using Boost Compute and OpenCL.
What You Will Learn
Find out how to use exciting new tools that will help you improve your code
Identify bottlenecks to optimize your code
Develop applications that utilize GPU computation
Reap the benefits of concurrent programming
Write code that can protect against application errors using error handling
Use STL containers and algorithms effciently
Extend your toolbox with Boost containers
Achieve effcient memory management by using custom memory allocators
contents
1 A Brief Introduction to C++
2 Modern C++ Concepts
3 Measuring Performance
4 Data Structures
5 A Deeper Look at Iterators
6 STL Algorithms and Beyond
7 Memory Management
8 Metaprogramming and Compile-Time Evaluation
9 Proxy Objects and Lazy Evaluation
10 Concurrency
11 Parallel STL