lzx compression

LZX — new Windows 10 NTFS compression algorithm


Many of you may know that NTFS file system used by Windows 10 already has a built-in NTFS compression feature. But in Windows 10 Microsoft has added couple of new compression algorithms. In this article we are going to tell you about LZX compression, the strongest of these algorithms. Compared with the already familiar to us NTFS compression, LZX algorithm has a much higher compression ratio (it’s about 40-60%).

Compression by using the LZX algorithm in Windows 10 is performing manually. To do it, we need to use Compact OS feature. Manipulations with compressed files are fully transparent for the user.

Main disadvantages of LZX:

  1. LZX compression is performing manually, so after file overwriting / updating / changing, you need to perform compression again. This type of compression is not appropriate for continuously variable files and temporary folders
  2. Unzipping consumes additional CPU and memory resources
  3. Compressed files are not highlighted in Explorer (files compressed with NTFS compression are highlighted in blue)

Note. Files compressed with LZX algorithm cannot be opened in the previous Windows versions.

It is ideal to use LZX compression for static files with only read/run access. There are games, distribution software or number of system directories.

For example, you can compress the folder with Far Cry 4 game. It will reduce its size from 27 to 17 GB. The same situation with Counter-Strike: Global Offensive: 10 vs. 7.5 GB.

READ ALSO  How to Backup and Restore Windows 10 Firewall Settings

Note. There is no reason to compress multimedia files (photos, video, music), because they are already compressed.

You have to perform compression by using Command Prompt as Administrator. For example, if you want to compress a single file, use the command:

compact /c /a /exe:lzx "C:\Program Files (x86)\mirkes.de\Tiny Hexer\mpth.exe"

powershell compact

In our case, the size before compression was 1.54 MB and 0.7 MB after it.

If you want to compress all the files in a specific directory, use the command:

compact /c /s /a /i /exe:lzx "C:\Program Files (x86)\*"

powershell compressing

The size of this directory has been decreased almost twice.

If you want to unpack the compressed files or directories, use the commands:

compact /u /a /exe “C:\Program Files (x86)\mirkes.de\Tiny Hexer\mpth.exe"
compact /u /a /s /exe "C:\Program Files (x86)\*"

Despite the steady increase in media capacity, the problem with a free space is still relevant. Most often the problem arises if you are using SSD drives, where the GB cost is quite high. By using LZX compression in Windows 10 you can save your disk space, but there is a small loss of performance over here. So, try it out.


You may also like:

How to Convert ESD to WIM File on Windows 10 In this tutorial we will show you how to convert ESD to WIM file using Command Prompt. ESD file is a new thing within Windows 10 OS, that Microsoft is...
Sysprep Windows 10 Machine: Step by Step Guide In this article we will show you how to use PowerShell and Windows System Preparation Tool to prepare a highly customized, personal Windows 10 install...
Integrate WSUS Offline Updater with MDT 2013 to De... In this article we will show you how to install updates offline gained using WSUS Offline Updater, inside MDT 2013 task sequences to deploy fully patc...
Capture Windows 10 Image using MDT 2013 In this article we are going to show you how to capture Windows 10 image using Microsoft Deployment Toolkit 2013 (MDT 2013). Later you can use such im...
System Restore Point in Windows 10: How to Enable,... Today we will show you how to enable, create and perform a system restore point in Windows 10. Let’s get started here by clicking on Start menu. Go to...
  • j7ndominica0

    The surprise return of disk compression seems like an admission by Microsoft that Windows is bloated. The problem of large binary sizes and redundant copies of them in the SxS and Installer directories (primarily), and verbose XML files, would be better addressed at the source without throwing raw CPU power at it.