C++ High Performance

Viktor Sehr, Bjorn Andrist

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

商品描述

Key Features

  • Explore concurrent programming in C++
  • Identify memory management problems
  • Use SIMD and STL containers for performance improvement

Book Description

C++ is an easy language and can be used to write complex applications and performance-critical code. It has evolved and changed over the last few years. This book will guide you through optimizing the performance of your C++ apps by allowing them to consume fewer resources on the device they're running on.

The book begins with a gentle introduction to help you identify the bottlenecks in C++. We move on to measuring performance and you'll see how this affects the way you write code. Next you'll understand the importance of data structure optimization and how it can be used efficiently. After that, we'll explain which algorithm should be used to achieve faster execution, followed by how to use STL containers.

Moving ahead, you'll find out how to boost your code's performance by executing compiled code. You'll get hands-on making use of multiple cores to enable efficient and faster execution, including GPUs. After that, you'll learn how to improve memory management in C++. We end with some techniques you can use to optimize the performance of your apps.

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
  • Know your code and hot spots
  • Use STL containers to achieve code optimization
  • Extend your toolbox with Boost containers
  • Write clean and safe code that the compiler can optimize
  • Use SIMD to get high performance
  • Achieve efficient memory management by identifying problems such as leaks
  • Speed up the loading and behavior of the application

商品描述(中文翻譯)

主要特點

- 探索C++中的並行編程
- 辨識記憶體管理問題
- 使用SIMD和STL容器來提升效能

書籍描述

C++是一種易於使用的語言,可用於撰寫複雜應用程式和效能關鍵的程式碼。在過去幾年中,它已經發展和改變。本書將引導您通過讓C++應用程式在運行設備上消耗更少資源來優化其效能。

本書以簡單的介紹開始,幫助您辨識C++中的瓶頸。我們接著介紹如何測量效能,並展示這如何影響您的程式碼撰寫方式。接下來,您將了解資料結構優化的重要性以及如何有效使用它。之後,我們將解釋應該使用哪種演算法來實現更快的執行速度,然後介紹如何使用STL容器。

往後,您將了解如何通過執行編譯後的程式碼來提升程式碼的效能。您將親自體驗如何利用多核心實現高效且更快的執行,包括使用GPU。之後,您將學習如何改善C++中的記憶體管理。最後,我們將介紹一些技巧,可用於優化應用程式的效能。

您將學到的內容

- 發現如何使用令人興奮的新工具來改善程式碼
- 辨識瓶頸以優化程式碼
- 開發利用GPU計算的應用程式
- 利用並行編程的好處
- 撰寫能夠使用錯誤處理保護應用程式錯誤的程式碼
- 瞭解程式碼和熱點
- 使用STL容器實現程式碼優化
- 透過Boost容器擴充您的工具箱
- 撰寫乾淨且安全的程式碼,讓編譯器能夠進行優化
- 使用SIMD獲得高效能
- 通過辨識洩漏等問題實現有效的記憶體管理
- 加快應用程式的載入和行為速度