Performance Tuning Strategies.

原创 2004年10月22日 22:10:00

Think about efficiency from each of these viewpoint
1. Program requirements. Performance is stated as a requirement far more often than is actually is a requirement. Before you invest time solving a performance problem, make sure that you're solveing a problem that needs to be solved.
2. Program design. If you know that a program's size and speed are important, design the program's architecutre so that you can reasonably meet your size and speed goals. Design a performance-oriented architechture, and then set resource goals for individual subsystems, features and classes.
3. Class and routine design. One key to performance that comes into play at this level is the choice of data types and algorithms, which usually affect both the memory use and the execution speed of a program.
4. Operation-system interactions. If your program works with external files, dynamic memory or output device, it's probably interacting with the operation ystem.
5. Hardware. Sometimes the cheapest and best way to improve a program's performance is to buy new hardware.
6. Code tuning. Code tuning is the practice of modifying correct code in ways that meke it run more efficiently.

Steps to code tuning:
1. Develop the sofeware using well-designed code that's easy to understand and modify.
2. If performance is poor
 a. Save a working version of the code so that you can get back the the "last known good  state".
 b. Measure the system to find hot spots.
 c. Determine whether the weak performance comes from inadequate design, data types, or  algorithms and whether code tuning is appropriate. If it isn't appropriate, go back to step  1.
 d. Tune the bottleneck identified in step(c).
 e. Measure each improvement one at a time.
 f. If an improvement doesn't improve the code, revert to the code saved in step(a).
3. Repeat from step 2.

Performance Tuning Guide

文中注释处以符号"*"加章节数字标记,具体在章节最后统一详细说明。 chapter 6  Automatic performance diagnostics Sql语句中尽量不要直接使用具体变量值进行...
  • battlehawk
  • battlehawk
  • 2010年04月10日 21:16
  • 684

ORACLE SQL Performance Tuning

Oracle Database上的设置对Performance的影响很大,如Shared Pool Size、Buffer Cache Size、SGA Structures、Database I/O...
  • cunxiyuan108
  • cunxiyuan108
  • 2012年04月19日 00:23
  • 852

WebSphere Application Server Performance Tuning Toolkit

WebSphere® Application Server Performance Tuning Toolkit 是一款基于 Eclipse 的智能工具,旨在帮助用户通过使用数据收集、数据分析和统计数...
  • Angel_He
  • Angel_He
  • 2014年08月30日 22:30
  • 1253

Oracle Performance Tuning Overview 翻译(Oracle性能优化概述 自己的中英文比对翻译)

Oracle® Database Performance Tuning Guide 10g Release 2 (10.2) B14211-03 Home Book List ...
  • xiaohai798
  • xiaohai798
  • 2014年06月23日 23:26
  • 2791

读书笔记(三):【SQL Server 2005 Performance Tuning性能调校】(0):【开篇】

【1】内容简介   数据库系统经年累月地运行,日久便可能面临数据累积量大、使用人数增加、应用面扩增、当初系统设计有局限等问题,导致性能变差,这就需要调试人员进行性能调校。然而,他们进行性能调校的...
  • u013948190
  • u013948190
  • 2015年12月13日 22:59
  • 287

Java Performance Tuning笔记

pdf在这里: 以及关于gc的官方文档...
  • jollyjumper
  • jollyjumper
  • 2014年03月02日 19:14
  • 1744


IBM has released the WebSphere Application Server Performance Tuning Toolkit that gives the ability ...
  • jackyrongvip
  • jackyrongvip
  • 2013年07月01日 17:52
  • 1099

JBoss AS 7性能调优(四)

原文:   Logging调优...
  • wilbertzhou
  • wilbertzhou
  • 2014年05月09日 22:26
  • 1186

hadoop性能优化指南《Hadoop Performance Tuning Guide》

  • orangeann
  • orangeann
  • 2014年01月14日 11:07
  • 1564

performance tuning for linux
  • RichardYSteven
  • RichardYSteven
  • 2011年11月29日 17:37
  • 651
您举报文章:Performance Tuning Strategies.