IridiumIO / CompactGUI

Transparently compress active games and programs using Windows 10/11 APIs
GNU General Public License v3.0
5.11k stars 238 forks source link

[FR] Add .tar based compressed files to "poorly compressed" list #365

Closed HarikalarKutusu closed 10 months ago

HarikalarKutusu commented 11 months ago

Thank you for this software...

I know most of you use this for SteamLibrary, but it is also useful for other stuff, such as compressing the git repositories, dataset files (csv, tsv, ..), etc.

In my open-source work, most of the data come from Linux, and go back to repos readable in linux, thus, mainly .tar based compressions, such as .tar.gz, .bz2 or .xz...

I tried to move my compressed stuff to another disk through a junction (mklink /J), but as expected, CompactGUI follows them, and compresses gigabytes of already compressed data.

It would be very nice if you could scan 7zip, winrar, etc applications to determine what is missing and add them to the hardcoded list, as the user additions do not work.

I'd love to help, but I don't have any knowledge on .net.

Masamune3210 commented 11 months ago

honestly, archive formats that are known to be seldomly compressable should probably just be part of the default ignore list. If its an archive format, its probably already compressed, and trying to compress already compressed data is seldomly ever going to do anything but waste time

Iridium-IO commented 11 months ago

@HarikalarKutusu not sure why the user additions wouldn't be working.

Also just want to check, if you're trying to move compressed stuff to another disk (that is, stuff compressed with compactGUI rather than other compressed archives like zip or tar files) you can't - Windows will automatically decompress them and move the uncompressed versions instead.

HarikalarKutusu commented 11 months ago

not sure why the user additions wouldn't be working.

@ImminentFate I though it was not working... I was wrong! After you mention this, I tried different entry styles, and I found out that you have to hit the spacebar after the entry. I've been trying "enter" and "tab"... My mistake, thank you for your comment.

But you should include non-spacebar versions I think for better UX.

In any case, all compressed formats should be in the default list, Wikipedia has a good list for them.

Windows will automatically decompress

I know the inner working of Compact. I've been trying to get the my .tar.xz files out of the way (I compress them programmatically).

Iridium-IO commented 10 months ago

@HarikalarKutusu I've added a bunch more to the default list, and you can now separate them with , or ; as well. I tried for ages to get Enter and Tab working but I no longer remember how the custom text box works, so I couldn't figure it out. It's something to do with how rich text boxes work, but oh well.

mirh commented 10 months ago

Just about any .tar.*** format is surely to be skipped But vanilla .tar implies nothing. The archive is so stupidly simple that you could as well poke inside of it to determine whether it is most likely to be compressible.

HarikalarKutusu commented 10 months ago

This is correct. But most of the times, the convention is that it is not compressed inside, but a bunch of files packed together, we manually add extra extensions to indicate the compression. As you said, no way to know without looking inside.

Thank you for the addition btw...

mirh commented 10 months ago

Most of times it is not compressed inside, indeed. But then it shouldn't belong in NonCompressableList.