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, 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 Protect Your Password from Hackers: 4 Bulletproof Methods

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:

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...
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...
How to perform a RAM Check in Windows 10 RAM is the part of computer hardware, which is often the cause of many system problems. If your computer frequently hangs, blue screen of death (BSOD)...
Grant Full Access to All Mailboxes in Exchange 200... This is a short tutorial on how to add full access to all mailboxes in Exchange 2007 and 2010 for a an additional user. This can come in handy when sa...
How to Convert Windows ESD File to Windows WIM Fil... In this tutorial we will show you how to convert ESD file to Windows WIM file using Command Prompt. ESD file is a new thing within Windows 10 OS, that...