Special Edition Using Microsoft Windows XP Professional (3rd Edition)
Windows XP ships with built-in provisions for file compression that is implemented via NTFS. It's not strictly true that only NTFS files and folders can be compressed, because a command-line program called compress can compress FAT-based files and folders. However, you must, in turn, use the expand command to decompress the resulting files and folders before you can use them. This procedure is awkward. So, for practical purposes, compression is implemented seamlessly into the operating system only on NTFS-formatted volumes. File compression works by encoding data to take up less storage space. Digital data is compressed by finding repeatable patterns of binary 0s and 1s. The more patterns found, the more the data can be compressed. Text can generally be compressed to about 40 percent of its original size and graphics files from 20 to 90 percent. Some files (namely .EXE files) compress very little because of the lack of repeating data patterns within the program. The amount of compression depends entirely on the type of file and compression algorithm used. Compressing a file or folder in Windows is a simple and straightforward process:
Two caveats are in order with compression:
CAUTION You should keep in mind some disk space requirements when using compression. If you try to compress a volume that's running extremely low on free space, you might see this error message: Compression Error File Manager/Explorer cannot change compress attributes for: "path\filename"
These error messages indicate that the system needs additional free space to perform compression. The system is not designed to manipulate the data in place on the disk. Additional space is needed to buffer the user data and to possibly hold additional file system metadata. The amount of additional free space required depends on the cluster size, file size, and available space. Use compression only when expressly needed. Compression will cause significant performance reduction if a significant number of commonly accessed files are compressed, due to the CPU processing required to decompress them for use. |