Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
Introduction to File-System Performance Guidelines
Accessing file data is one of the biggest bottlenecks to performance on any computer system. Most computers are capable of executing millions of instructions before the hard drive heads are even in position and ready to read a piece of data. As a result, it is imperative that you examine your application’s file-system interactions and do what you can to improve them.
Organization of This Document
This programming topic contains the following articles:
File-System Performance Tips provides some general tips for improving your application’s file-related code.
Overview of OS X File Systems provides a brief overview of OS X file-system performance and how it can impact your application.
Examining File-System Usage describes techniques for analyzing your application’s file-system interactions.
Mapping Files Into Memory describes techniques for minimizing the work done when reading files into memory.
Iterating Directory Contents provides an example of how to iterate directories efficiently.
Resolving Domain Names describes better-performing alternatives to getting network-based information.
Tracking File-System Changes describes the approach your application should take when monitoring the file system for changes to individual files and directories.