Chapter 8. Code Tuning


La perfection est atteinte non quand il ne reste rien   ajouter, mais quand il ne reste rien   enlever.( Perfection is attained not when there is nothing left to add, but when there is nothing more to take away.)

”Antoine de Saint-Exupery

The art of writing software tuned for maximum performance is a difficult one to learn, much less master; it could easily be the topic of a book all to itself. However, operating system tuning can only get you so far: poorly optimized software can be a bottleneck just as easily as a shortage of physical memory. In these cases, if you have access to the application's source code, some careful tuning can help you solve the performance problem. Generally, performance problems in software fall into two broad areas: poor algorithm selection and inefficient implementation.

In this chapter, I discuss the two most critical optimizations for system performance, some techniques for analyzing application performance (such as the Solaris trace normal form (TNF) probe facility and the GNU profiling tool gprof ), and some common patterns that lend themselves to optimization.



System Performance Tuning2002
System Performance Tuning2002
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 97

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net