C++ High Performance : Master the art of optimizing the functioning of your C++ code, 2/e (Paperback)

Andrist, Björn, Sehr, Viktor

  • 出版商: Packt Publishing
  • 出版日期: 2020-12-21
  • 售價: $2,190
  • 貴賓價: 9.5$2,081
  • 語言: 英文
  • 頁數: 540
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1839216549
  • ISBN-13: 9781839216541
  • 相關分類: C++ 程式語言
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

A comprehensive guide to help aspiring and professional C++ developers elevate the performance of their apps by allowing them to run faster and consume fewer resources

 

Key features

  • Updated to C++20 with completely revised code and more content on error handling, benchmarking, memory allocators, and concurrent programming
  • Explore the latest C++20 features including concepts, ranges, and coroutines
  • Utilize C++ constructs and techniques to carry out effective data structure optimization and memory management

 

Book Description

C++ High Performance, Second Edition intends to 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 without compromising the readability of your codebase.

 

The book begins by introducing C++ language and some of its modern concepts to you in brief. Once you are familiar with the fundamentals, it enables you to measure and identify bottlenecks in a C++ codebase and how to eradicate them using modern C++ constructs and techniques. In this process, you will gradually improve your style of writing code. You will further dive deep to explore data structure optimization, memory management, and how it can be used efficiently concerning CPU caches.

 

After laying the foundation, the book trains you to leverage algorithms, ranges, and containers from the standard library to achieve faster execution, write readable code and use customized iterators. It provides hands-on experience of C++ metaprogramming, coroutines, reflection to reduce boilerplate code, proxy objects to perform optimizations under the hood, concurrent programming and lock-free data structures. The book concludes with an overview of parallel algorithms.

 

By the end of this book, you will have developed the ability to use every tool as per its need to boost the efficiency of your C++ project.

 

What you will learn

  • Write specialized data structures for performance-critical code
  • Use modern metaprogramming techniques to reduce runtime calculations
  • Achieve efficient memory management using custom memory allocators
  • Reduce boilerplate code using reflection techniques
  • Reap the benefits of lock-free concurrent programming
  • Gain insights into subtle optimizations used by standard library algorithms
  • Compose algorithms using ranges library
  • Develop the ability to apply metaprogramming aspects such as constexpr, constraints and concepts
  • Implement lazy generators and asynchronous tasks using C++20 coroutines

 

Who this book is for

If you're a C++ developer looking to improve the efficiency of your code or just keen to upgrade your skills to the next level, this book is for you.

商品描述(中文翻譯)

《C++高效能:第二版》是一本全面指南,旨在幫助有志於成為專業C++開發人員的人提升應用程式的效能,使其運行更快並消耗更少的資源。

主要特點包括:
- 使用C++20進行更新,完全修訂的程式碼,並增加了有關錯誤處理、基準測試、記憶體配置器和並行程式設計的內容。
- 探索最新的C++20功能,包括概念、範圍和協程。
- 利用C++的結構和技術進行有效的資料結構優化和記憶體管理。

《C++高效能:第二版》旨在指導讀者如何優化其C++應用程式的效能,使其在運行設備上運行更快並消耗更少的資源,同時不影響程式碼的可讀性。

本書首先簡要介紹C++語言及其一些現代概念。一旦讀者熟悉了基礎知識,就可以測量和識別C++程式碼庫中的瓶頸,並使用現代C++的結構和技術消除它們。在這個過程中,讀者將逐漸改進其編碼風格。接著,讀者將深入探討資料結構優化、記憶體管理以及如何有效地使用CPU快取。

在奠定基礎之後,本書將指導讀者如何利用標準程式庫中的演算法、範圍和容器實現更快的執行、可讀的程式碼和使用自定義迭代器。本書提供了C++元程式設計、協程、反射等實踐經驗,以減少樣板程式碼、在幕後進行優化的代理物件、並行程式設計和無鎖資料結構。本書最後還概述了並行演算法。

通過閱讀本書,讀者將能夠根據需要使用各種工具,提升其C++專案的效能。

本書適合以下讀者:
- C++開發人員,希望改進其程式碼的效率或提升技能水平的人。