Optimizing Program Performance-- Summary, Performance Improvement Techniques
来源:互联网 发布:网络写作平台有哪些 编辑:程序博客网 时间:2024/05/20 10:55
Although we have only considered a limited set of applications, we can draw important lessons on how to
write efficient code. We have described a number of basic strategies for optimizing program performance:
1. High-level design. Choose appropriate algorithms and data structures for the problem at hand. Be especially
vigilant to avoid algorithms or coding techniques that yield asymptotically poor performance.
选择高效的算法。
2. Basic coding principles. Avoid optimization blockers so that a compiler can generate efficient code.
(a) Eliminate excessive function calls. Move computations out of loops when possible. Consider
selective compromises of program modularity to gain greater efficiency.
(b) Eliminate unnecessary memory references. Introduce temporary variables to hold intermediate
results. Store a result in an array or global variable only when the final value has been computed.
3. Low-level optimizations.
(a) Try various forms of pointer versus array code.
(b) Reduce loop overhead by unrolling loops.
(c) Find ways to make use of the pipelined functional units by techniques such as iteration splitting.
- Optimizing Program Performance-- Summary, Performance Improvement Techniques
- Optimizing Program Performance
- Optimizing Program Performance-- Expressing Program Performance
- Optimizing Program Performance--Expressing relative performance
- Optimizing Program Performance--Enhanceing Parallelism
- Optimizing Program Performance-- Eliminating Loop Inefficiencies
- Optimizing Program Performance--Reucing Procedure Calls
- Optimizing Program Performance--Eliminating Unneeded Memory Reference
- Optimizing Program Performance-- Reducing Loop Overhead
- Chapter 5 Optimizing Program Performance [《CSAPP》 笔记]
- Optimizing Program Performance-- Capability and limitation of Optimizing Compilers
- Performance Improvement Methods
- TI81XX UDP Performance Improvement
- Optimizing Program Performance-- 使用GPROF来查看系统的性能
- 读书笔记: optimizing program performance<computer system a programmer perspective>
- Optimizing Graphics Performance
- Optimizing Graphics Performance (iOS)
- optimizing TCP Receive Performance
- ERP软件技术发展的六大新趋势
- 普元一行给了我希望,给了SCS发展的希望
- 个人最常用的十二个 Eclipse 开发快捷键
- 中国家电业如何破解管理难题
- 蝴蝶效应,鳄鱼法则,罗森塔尔效应,帕金森定律,手表定律,破窗理论,晕轮效应 ,霍桑效应,二八定律,木桶理论,马太效应,踢猫效应…………
- Optimizing Program Performance-- Summary, Performance Improvement Techniques
- 系统崩溃了!
- 一个北大学生与日本记者的对话
- iis中cookie的设置方法(三)
- ERP顾问人员稀缺渐成我国信息化发展瓶颈
- TClipBoard剪贴板示例
- J2ME内存优化 【转】+ 补充
- ARM 中断处理和中断控制器
- 2009 年度最佳 jQuery 插件