CompactGUI icon indicating copy to clipboard operation
CompactGUI copied to clipboard

No increase in usable disk space

Open Razor54672 opened this issue 2 years ago • 5 comments

I used the program for multiple games with varying results. However, in each one of them it retains the Size parameter and only Size on disk changes.

image

Razor54672 avatar Feb 14 '23 14:02 Razor54672

That is correct, if I am not mistaken. The compression is changing how much space it takes up on the disk, but the file itself didn't change so the size stays the same, but the size on disk changes, indicating either a sparse allocation or a compressed stream

Masamune3210 avatar Feb 14 '23 17:02 Masamune3210

This is how the file system works, not just for compression. If you format a flash drive with very large clusters and fill it with small files the size on disk will be much larger than its size from cluster slack waste.

EvocativeOlash avatar Feb 15 '23 11:02 EvocativeOlash

Yeah the overall size remains the same. But the size on disk shrinks down. So it still allows you to store more on the hard disk (if it's formatted as NTFS). At least that's what I've found. Pretty interesting. But what I've noticed is that if you try to transfer the compressed files to another drive or PC, you'll be copying files of the original size. And if you try and shrink it down on another drive or PC after it's been compressed at the original location, it won't work. But if you copy the original files (uncompressed), and then shrink them down there, it will work. It's strange.

Cee123 avatar Mar 13 '23 02:03 Cee123

it depends on how you transfer them and to what filesystem. Most if not all of the compression schemas work by putting a stub in the main stream and then using a alternate data stream to hold the compressed data. If you copy to a filesystem or system that does not understand the compressed format or doesn't support ADS, the compression is lost

Masamune3210 avatar Mar 13 '23 03:03 Masamune3210

In this case you've saved 2.7Gb of usable space.

Cee123 avatar Mar 29 '23 00:03 Cee123