About Advanced File System Topics
This document supplements the information in File System Programming Guide by describing procedures that are related to the file system but not central to using it.
At a Glance
This document describes advanced techniques for manipulating files.
File Mapping is an Efficient Way to Read Large Files
File mapping is the process of mapping disk sectors associated with a file into the virtual memory space of a process. Mapping is most appropriate when you plan to read small portions of a large file frequently and in random order. Mapping just the portions you need into memory is much more efficient than reading or rereading those sections over and over from disk. Mapping yields little benefit for files you plan to read sequentially anyway.
Directories Can Have Localized Names
You can provide localized names for any user-visible directories that your code creates. Localized names improve the experience for users by showing directory names in the language they understand. The Finder automatically localizes the names of many system directories but you must provide the appropriate localizations for any custom directories you create.
Prerequisites
File System Programming Guide is a prerequisite for reading this document. If you have not yet read that document, you should at least understand the content in the first two chapters, which describe the file system organization and techniques for accessing files and directories.
Copyright © 2011 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2011-06-06