点击选择搜索分类
首页 - 经部- 正文
☆☆☆☆☆
||
Kurt,Guntheroth 著
出版社: 东南大学出版社 ISBN:9787564169992 版次:1 商品编码:12151344 包装:平装 外文名称:Optimized C++ 开本:16开 出版时间:2017-02-01 用纸:胶版纸 页数:366 字数:475000 正文语种:英文
作者提供了几个运行示例,演示如何逐步应用这些原则以改进现有代码,从而满足客户对响应速度和数据吞吐量的要求。
1. An Overview of Optimization
Optimization Is Part of Software Development
Optimization Is Effective
It's OK to Optimize
A Nanosecond Here, a Nanosecond There
Summary of Strategies for Optimizing C++ Code
Use a Better Compiler, Use Your Compiler Better
Use Better Algorithms
Use Better Libraries
Reduce Memory Allocation and Copying
Remove Computation
Use Better Data Structures
Increase Concurrency
Optimize Memory Management
Summary
2. Computer Behavior Affecting Optimization
Lies C++ Believes About Computers
The Truth About Computers
Memory Is Slow
Memory Is Not Accessed in Bytes
Some Memory Accesses Are Slower than Others
Memory Words Have a Big End and a Little End
Memory Has Finite Capacity
Instruction Execution Is Slow
Making Decisions Is Hard for Computers
There Are Multiple Streams of Program Execution
Calling into the Operating System Is Expensive
C++ Tells Lies Too
All Statements Are Not Equally Expensive
Statements Are Not Executed in Order
Summary
3. Measure Performance
The Optimizing Mindset
Performance Must Be Measured
Optimizers Are Big Game Hunters
The 90/10 Rule
Amdahl's Law
Perform Experiments
Keep a Lab Notebook
Measure Baseline Performance and Set Goals
You Can Improve Only What You Measure
Profile Program Execution
Time Long-Running Code
'~ Little Learning" About Measuring Time
Measuring Time with Computers
Overcoming Measurement Obstacles
Create a Stopwatch Class
Time Hot Functions in a Test Harness
Estimate Code Cost to Find Hot Code
Estimate the Cost of Individual C++ Statements
Estimate the Cost of Loops
Other Ways to Find Hot Spots
Summary
4. Optimize String Use: A Case Study
Why Strings Are a Problem
Strings Are Dynamically Allocated
Strings Are Values
Strings Do a Lot of Copying
First Attempt at Optimizing Strings
Use Mutating String Operations to Eliminate Temporaries
Reduce Reallocation by Reserving Storage
Eliminate Copying of String Arguments
Eliminate Pointer Dereference Using Iterators
Eliminate Copying of Returned String Values
Use 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
A sundial makes use of the periodic off—plane rotation of the Earth.By definition,one full rotation is one day The Earth makes an imperfect clock because its period is long,and because its rotation speeds up and slows down detectably (in microseconds) as the continents drift slowly across its surface.This variation is random.Tidal forces from the Moon and Sun slow the overall rate of the Earth's rotation.This variation is systematic.
A grandfather clock counts the regular swinging of a pendulum.Gears divide the pendulum's swing down to drive hands that display the time.The period of the pendulum may be manually adjusted so that the displayed time is synchronized to the Earth's rotation.The period of a pendulum's swing depends on the weight of the pendulum and its length,so that every swing may be faster or slower than desired.This variation is systematic.Friction,air pressure,and the accumulation of dust may all affect a pendulum even ifit is initially set perfectly.These are random sources of variation.
……
C++性能优化手册(影印版 英文版) [Optimized C++] 电子书 下载 mobi epub pdf txt
C++性能优化手册(影印版 英文版) [Optimized C++]-so88
C++性能优化手册(影印版 英文版) [Optimized C++] pdf epub mobi txt 电子书 下载 2022
图书介绍
☆☆☆☆☆
||
Kurt,Guntheroth 著
出版社: 东南大学出版社 ISBN:9787564169992 版次:1 商品编码:12151344 包装:平装 外文名称:Optimized C++ 开本:16开 出版时间:2017-02-01 用纸:胶版纸 页数:366 字数:475000 正文语种:英文
内容简介
在当今飞速发展和充满竞争的世界中,对于客户而言,程序的性能与功能一样重要。这本实践指南为开发人员讲解在C++中实现优化的性能调优原则。你将学习如何令已经包含了C++设计实践的代码在任何计算机上——无论是手表、电话、工作站、超级计算机还是全球服务器网络——很快地运行并消耗少的资源。作者提供了几个运行示例,演示如何逐步应用这些原则以改进现有代码,从而满足客户对响应速度和数据吞吐量的要求。
作者简介
Kurt Guntheroth,是一位有超过35年经验的软件开发人员,其中25年的时间被他用来编写大量C++代码。他在Windows、Linux和嵌入式设备上开发。kurt住在华盛顿州西雅图市。目录
Preface1. An Overview of Optimization
Optimization Is Part of Software Development
Optimization Is Effective
It's OK to Optimize
A Nanosecond Here, a Nanosecond There
Summary of Strategies for Optimizing C++ Code
Use a Better Compiler, Use Your Compiler Better
Use Better Algorithms
Use Better Libraries
Reduce Memory Allocation and Copying
Remove Computation
Use Better Data Structures
Increase Concurrency
Optimize Memory Management
Summary
2. Computer Behavior Affecting Optimization
Lies C++ Believes About Computers
The Truth About Computers
Memory Is Slow
Memory Is Not Accessed in Bytes
Some Memory Accesses Are Slower than Others
Memory Words Have a Big End and a Little End
Memory Has Finite Capacity
Instruction Execution Is Slow
Making Decisions Is Hard for Computers
There Are Multiple Streams of Program Execution
Calling into the Operating System Is Expensive
C++ Tells Lies Too
All Statements Are Not Equally Expensive
Statements Are Not Executed in Order
Summary
3. Measure Performance
The Optimizing Mindset
Performance Must Be Measured
Optimizers Are Big Game Hunters
The 90/10 Rule
Amdahl's Law
Perform Experiments
Keep a Lab Notebook
Measure Baseline Performance and Set Goals
You Can Improve Only What You Measure
Profile Program Execution
Time Long-Running Code
'~ Little Learning" About Measuring Time
Measuring Time with Computers
Overcoming Measurement Obstacles
Create a Stopwatch Class
Time Hot Functions in a Test Harness
Estimate Code Cost to Find Hot Code
Estimate the Cost of Individual C++ Statements
Estimate the Cost of Loops
Other Ways to Find Hot Spots
Summary
4. Optimize String Use: A Case Study
Why Strings Are a Problem
Strings Are Dynamically Allocated
Strings Are Values
Strings Do a Lot of Copying
First Attempt at Optimizing Strings
Use Mutating String Operations to Eliminate Temporaries
Reduce Reallocation by Reserving Storage
Eliminate Copying of String Arguments
Eliminate Pointer Dereference Using Iterators
Eliminate Copying of Returned String Values
Use 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
精彩书摘
《C++性能优化手册(影印版 英文版)》:A sundial makes use of the periodic off—plane rotation of the Earth.By definition,one full rotation is one day The Earth makes an imperfect clock because its period is long,and because its rotation speeds up and slows down detectably (in microseconds) as the continents drift slowly across its surface.This variation is random.Tidal forces from the Moon and Sun slow the overall rate of the Earth's rotation.This variation is systematic.
A grandfather clock counts the regular swinging of a pendulum.Gears divide the pendulum's swing down to drive hands that display the time.The period of the pendulum may be manually adjusted so that the displayed time is synchronized to the Earth's rotation.The period of a pendulum's swing depends on the weight of the pendulum and its length,so that every swing may be faster or slower than desired.This variation is systematic.Friction,air pressure,and the accumulation of dust may all affect a pendulum even ifit is initially set perfectly.These are random sources of variation.
……
C++性能优化手册(影印版 英文版) [Optimized C++] 电子书 下载 mobi epub pdf txt
电子书下载地址:
相关电子书推荐:
- 文件名
- 贪玩的人类3--改变世界的中国智慧 9787030521323 老多(李建荣)-RT
- 包邮 美国增长的起落 中信出版社
- 七彩像素涂色书-4
- 中国方案1.0
- 鳞甲有灵——西方经典手绘爬行动物 [法]杜梅里,[奥地利]费卿格
- 财产、权力和公共选择:对法和经济学的进一步思考
- BF-田园的理想国-大自然的理想国-张俊红 新疆美术摄影出版社,新疆电子音像出版社 978
- BEAMS AT HOME 2:136个人的家与生活
- 科普大讲坛:探索人体奥秘,关爱生命健康
- 极致:互联网时代的产品设计 中信出版社
- 鸟:全世界130种鸟的彩色图鉴(超值全彩珍藏版) 9787550276031 刘晓菲-RT
- 纵横“一带一路”:中国高铁全球战略
- 推动丛书:宇宙系列(套装) 9787535795540
- 厉害了,我的厨房! 高木惠美著 《小家,越住越大》姊妹篇 御厨房里那些事儿厨房收纳可搭配小家越住越大
- 科技发展五十年 遥望地外星球