技术教育社区
www.teccses.org

C++性能优化手册-(影印版)

封面

作者:库尔特.冈瑟罗思

页数:366

出版社:东南大学出版社

出版日期:2017

ISBN:9787564169992

电子书格式:pdf/epub/txt

内容简介

这本实用指南为开发人员讲解在 C++ 中实现优化的性能调优原则。您将学习如何使得已经包含了 C++ 设计最佳实践的代码在任何计算机上更快地运行并消耗更少的资源——无论是手表,电话,工作站,超级计算机或全球服务器网络。作者 Kurt Guntheroth 提供了几个运行示例,演示如何逐步应用这些原则以改进现有代码,从而满足客户对响应速度和数据吞吐量的要求。

作者简介

Kurt Guntheroth,是一位有超过35年经验的软件开发人员,其中25年的时间被他用来编写大量C++代码。他在Windows、Linux和嵌入式设备上开发。kurt住在华盛顿州西雅图市。

本书特色

在当今飞速发展和充满竞争的世界中,对于客户而言,程序的性能与功能一样重要。这本实践指南为开发人员讲解在C 中实现优化的性能调优原则。你将学习如何令已经包含了C 设计最佳实践的代码在任何计算机上——无论是手表、电话、工作站、超级计算机还是全球服务器网络——最快地运行并消耗最
少的资源。
作者库尔特·冈瑟罗思Kurt
Guntheroth提供了几个运行示例,演示如何逐步应用这些原则以改进现有代码,从而满足客户对响应速度和数据吞吐量的要求。《C 性能优化手册(影印版)(英文版)》的建议将证明它自己,你将第一次听到同事惊呼:“哇,这么快。谁修改了什么东西?”

目录

Preface
1. An Overview of OptimizationOptimization Is Part of Software DevelopmentOptimization Is EffectiveIt’s OK to OptimizeA Nanosecond Here, a Nanosecond ThereSummary of Strategies for Optimizing C CodeUse a Better Compiler, Use Your Compiler BetterUse Better AlgorithmsUse Better LibrariesReduce Memory Allocation and CopyingRemove ComputationUse Better Data StructuresIncrease ConcurrencyOptimize Memory ManagementSummary
2. Computer Behavior Affecting OptimizationLies C Believes About ComputersThe Truth About ComputersMemory Is SlowMemory Is Not Accessed in BytesSome Memory Accesses Are Slower than OthersMemory Words Have a Big End and a Little EndMemory Has Finite CapacityInstruction Execution Is SlowMaking Decisions Is Hard for ComputersThere Are Multiple Streams of Program ExecutionCalling into the Operating System Is ExpensiveC Tells Lies TooAll Statements Are Not Equally ExpensiveStatements Are Not Executed in OrderSummary
3. Measure PerformanceThe Optimizing MindsetPerformance Must Be MeasuredOptimizers Are Big Game HuntersThe 90/10 RuleAmdahl’s LawPerform ExperimentsKeep a Lab NotebookMeasure Baseline Performance and Set GoalsYou Can Improve Only What You MeasureProfile Program ExecutionTime Long-Running Code’~ Little Learning” About Measuring TimeMeasuring Time with ComputersOvercoming Measurement ObstaclesCreate a Stopwatch ClassTime Hot Functions in a Test HarnessEstimate Code Cost to Find Hot CodeEstimate the Cost of Individual C StatementsEstimate the Cost of LoopsOther Ways to Find Hot SpotsSummary
4. Optimize String Use: A Case StudyWhy Strings Are a ProblemStrings Are Dynamically AllocatedStrings Are ValuesStrings Do a Lot of CopyingFirst Attempt at Optimizing StringsUse Mutating String Operations to Eliminate TemporariesReduce Reallocation by Reserving StorageEliminate Copying of String ArgumentsEliminate Pointer Dereference Using IteratorsEliminate Copying of Returned String ValuesUse Character Arrays Instead of Strings……
5. Optimize Algorithms
6. Optimize Dynamically Allocated Variables
7. Optimize Hot Statements
8. Use Better Libraries
9. Optimize Searching and Sorting
10. Optimize Data Structures
11. Optimize I/0
12. Optimize Concurrency
13. Optimize Memory Management

下载地址

立即下载

(解压密码:www.teccses.org)

Article Title:《C++性能优化手册-(影印版)》
Article link:https://www.teccses.org/726205.html