Question about NTFS Compression

James Pedersen 1 Reputation point
2024-01-10T23:44:57.2566667+00:00

Hi,

According to the documentation for the algorithms used in NTFS compression, there are multiple algorithms which are used. Specifically, there is LZ77+Huffman, Plain LZ77, and LZNT1, according to the most recent version of the documentation.

I'm wondering, in Windows 10, which of these algorithms get used when? How does Windows 10 decide which of these algorithms to use for a given file to be compressed? Thank you,

James Pedersen

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-01-12T01:51:23.5066667+00:00

    Hello James Pedersen, The file compression algorithm used by the NTFS file system is Lempel-Ziv compression. This is a lossless compression algorithm, which means that no data is lost when compressing and decompressing the file, as opposed to lossy compression algorithms such as JPEG, where some data is lost each time data compression and decompression occur. Reference File Compression and Decompression for more informant: https://learn.microsoft.com/en-us/windows/win32/fileio/file-compression-and-decompression


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.