C++ High Performance : Master the art of optimizing the functioning of your C++ code, 2/e (Paperback)
暫譯: C++ 高效能:掌握優化 C++ 代碼運行的藝術,第二版 (平裝本)

Andrist, Björn, Sehr, Viktor

  • 出版商: Packt Publishing
  • 出版日期: 2020-12-21
  • 定價: $2,190
  • 售價: 9.0$1,971
  • 語言: 英文
  • 頁數: 540
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1839216549
  • ISBN-13: 9781839216541
  • 相關分類: C++ 程式語言
  • 相關翻譯: 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++20,完全修訂的程式碼,並增加了有關錯誤處理、基準測試、記憶體配置器和併發編程的內容

  • 探索最新的 C++20 特性,包括概念、範圍和協程

  • 利用 C++ 的結構和技術進行有效的資料結構優化和記憶體管理

 

書籍描述

C++ 高效能(第二版)旨在指導您優化 C++ 應用程式的性能,使其在運行的設備上運行更快且消耗更少的資源,同時不妨礙程式碼庫的可讀性。

 

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

 

在奠定基礎後,本書訓練您利用標準庫中的演算法、範圍和容器來實現更快的執行,撰寫可讀的程式碼並使用自定義的迭代器。它提供 C++ 元編程、協程、反射的實作經驗,以減少樣板程式碼,代理物件以在底層執行優化,併發編程和無鎖資料結構。本書最後概述了平行演算法。

 

在本書結束時,您將具備根據需求使用每個工具以提升 C++ 專案效率的能力。

 

您將學到什麼


  • 為性能關鍵的程式碼撰寫專門的資料結構

  • 使用現代元編程技術來減少運行時計算

  • 使用自定義記憶體配置器實現高效的記憶體管理

  • 使用反射技術減少樣板程式碼

  • 獲得無鎖併發編程的好處

  • 深入了解標準庫演算法使用的微妙優化

  • 使用範圍庫組合演算法

  • 發展應用元編程方面的能力,如 constexpr、約束和概念

  • 使用 C++20 協程實現延遲生成器和非同步任務

 

本書適合誰

如果您是 C++ 開發者,想要提高程式碼的效率或只是希望將技能提升到下一個層次,本書適合您。