|
Getting Started with PerformanceTechnology OverviewPerformance is the measure of how efficiently your software uses resources such as the CPU, memory, and hard drive. Improving performance involves establishing a set of target goals and then measuring the efficiency of your software against those goals. Apple provides tools for measuring your software efficiency in several different ways. Using your measurements, you can then decide an appropriate course of action for modifying your code and meeting your goals. There are many ways to improve software performance, but not all of them are appropriate for every situation. Diagnosing performance problems requires some detective work on your part, but Apple’s performance tools can help you in this endeavor. With these tools, you can gather information such as the following:
From this and other information, you can identify reasons why your application does not match your performance goals and proceed with fixing those problems. Start HereBefore you attempt to fix any perceived performance problems in your software, you should read:
Choose a Learning PathIf you’re just starting a new programming project, your designs should take performance into account. If you’re improving the performance of an existing program, you want to find the bottlenecks in your code. If you’re looking for peak performance, you want to tune it for specific hardware. Designing for PerformanceBefore you can build performance into your code, you need to understand what is meant by performance. There are many ways to measure performance, but not all of them may be relevant to your application. Knowing which performance metrics are important to you can heavily influence design decisions. The document Performance Overview contains information related to designing your application with performance in mind. For an introduction to the factors that make up performance, read the chapter Developing for Performance. Improving Your Existing CodeDiagnosing performance problems requires real data and not guesses. Apple’s performance tools provide metrics that you can use to identify potential problems. For some specific problems, there are also ways to take advantage of multithreading and Velocity Engine to improve performance.
Tuning Code for Specific HardwareHardware optimization is one of the last steps for developers who need to maximize the performance of their applications. To optimize for specific hardware, you’ll learn how to use the CHUD tools and optimize for the target processor.
Next StepsThe Performance Reference Library includes the following high-level Performance resource pages, which can be bookmarked for easy access:
|
© 2003, 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-12-05)
|