PDA

View Full Version : Compression



sefs
December 22nd, 2010, 05:40 PM
1) With the plethora of compression formats 7z bz2, gzip, lzma etc, is tar still relevant?

2) I realize that I can only split files via the compress dialog, when I select 7z. Why not for the others.

I've created a small poll to see what is the favorite compression format (generally) among the forum. I also understand that each format has it's place, but we are talking generally here.

Spice Weasel
December 22nd, 2010, 05:43 PM
.7z, because it's a free format and more widely supported than most of the others listed.

Otherwise .gz or .tar.bz2 (if what I'm compressing would only be used by users of UNIX-like operating systems).

Paddy Landau
December 22nd, 2010, 05:44 PM
1) With the plethora of compression formats 7z bz2, gzip, lzma etc, is tar still relevant?
Yes, tar is used by many scripts. If you want (for example) to bzip2 a folder, you need tar.


2) I realize that I can only split files via the compress dialog, when I select 7z. Why not for the others.
I don't know. Tar does allow splitting, but not on the dialogue.

lykwydchykyn
December 22nd, 2010, 05:45 PM
tar is not a compression format. It's a program for combining many files into one. The resulting file can then be compressed using any compression scheme you want.

Modularity is nice.

NightwishFan
December 22nd, 2010, 06:19 PM
XZ, which is a newer type of LZMA.

Barrucadu
December 22nd, 2010, 06:46 PM
xz has very good compression, though takes a little longer to compress and decompress than, say, gzip.

NightwishFan
December 22nd, 2010, 06:48 PM
True. I rated the decompression "passable" so I decided to migrate to it from lzma and gzip. It seems to be faster than bzip2 even if I use the multi-threaded implementation, and xz being multi-threaded itself seems to be an eventual goal.

Superkoop
December 22nd, 2010, 07:15 PM
I voted for .zip simply because it's the mostly widely spread and usable in my experience. Otherwise I use gzip for my own uses, but usually I only compress things when others will be using it, if it's for my own use size is never really an issue.

RiceMonster
December 22nd, 2010, 08:32 PM
Usually use .zip, because then pretty much anybody can open it. It's not because I think it's the best option or anything.

3Miro
December 22nd, 2010, 08:34 PM
Usually use .zip, because then pretty much anybody can open it. It's not because I think it's the best option or anything.

+1. I often send files to friends in the Windows world, with zip I know they can open it. If I send them tar, they may or may not be able to do so.

uRock
December 22nd, 2010, 08:38 PM
Usually use .zip, because then pretty much anybody can open it. It's not because I think it's the best option or anything.
Same here. It "just works" for everyone.

cokicd
December 23rd, 2010, 12:42 AM
arc for personal use (http://www.freearc.org/)
7z to share with others

sefs
December 23rd, 2010, 12:58 AM
Things get confusing when you see that in windows. You can use say the 7z archive format but have choices for the algorithm used - bzip2, lzma, lzma2 (xz in linux) - to generate the compressed file in this format.

You can also go with bzip2 and the usual roundup like gzip ect as the archive format which would used algorithms specific to them.

I suppose in the file roller app on linux when you choose 7z what you are really getting is the lzma compression algorithm used by default.

cokicd
December 23rd, 2010, 01:24 AM
arc for personal use (http://www.freearc.org/)
7z to share with others

The Real Dave
December 23rd, 2010, 02:01 AM
If it's for myself, tar.gz. If the file is going to a friend, or member of family, it'll be .rar, because I know they'll be using WinRAR. Other than that, I use .zip, seeing as just about anyone can open it.

Little Bones
December 23rd, 2010, 02:54 AM
.zip out of ease of use for my Windows using friends

Austin25
December 23rd, 2010, 05:50 AM
I couldn't decide on .tar or .tar.gz so I went with .tar.gz because it compresses farther.

MisterGaribaldi
December 23rd, 2010, 06:13 AM
In those rare situations where I have to compress something (or maybe group files together into an archive) I usually still use ZIP because it's the most cross-platform supported.

But most of the time the only "compressed" files I traffic in are lossy-compressed JPEGs and PNGs.

Hur Dur
December 23rd, 2010, 06:32 AM
It depends.

If I am aiming for great compression, I prefer .arc or .uha or .bh.

For everyday use, I prefer .tar.bz2

ve4cib
December 23rd, 2010, 09:35 AM
1) With the plethora of compression formats 7z bz2, gzip, lzma etc, is tar still relevant?

Absolutely. Many compression algorithms (like bz2 and gz) can only operate one a single file. Tar just strings a bunch of files into a single, larger, uncompressed lump.

If you wanted to gzip an entire directory without tar you'd need to create a separate .gz file for every file in the directory. With tar you can make a single, larger file out of the whole directory, and then compress that single file.

Note however that tar is not a compression format. It's an archive format (specifically Tape ARchive) with no built-in compression.


As for the poll, most of the time I'll use .zip just because I know everyone can open it. For assignments I'm e-mailing to profs I'll often use .tar.gz or .tar.bz2 since I know they'll be running the assignment submissions on Unix/Linux boxes (I'm a Comp Sci student), but most everything else is .zip.

I used to use .rar all the time at work. It was just what we used to send files to clients. But since I stopped working to go back to school (and in the process stopped using Windows) I've stopped using .rar entirely.

Grenage
December 23rd, 2010, 09:54 AM
If multiple people - zip.
If it's for Windows+Linux (for me) - rar.
If it's for Linux - tar.gz.

miegiel
December 23rd, 2010, 10:32 AM
+1. I often send files to friends in the Windows world, with zip I know they can open it. If I send them tar, they may or may not be able to do so.

I used to do that too until a while ago. For fun I tried opening a .tar.gz in my bare windows 7. And guess what, it just opened like a regular .zip. Since then I've just been mailing people .tar.gz's. :D Occasionally I get a confused reply and need to suggest they double click it in the file browser.

I consider it revenge for people sending me empty emails with the message in an attached .doc that force me to read a simple message in an office clone or .ppt's that I can't open at all.

BrokenKingpin
December 23rd, 2010, 03:19 PM
Why do people still use rar... I honestly do not get it?

ErikNJ
December 23rd, 2010, 04:15 PM
If multiple people - zip.
If it's for Windows+Linux (for me) - rar.
If it's for Linux - tar.gz.

I do the same except I don't use rar. Gzip for me and zip for general distribution.

Paddy Landau
December 23rd, 2010, 04:31 PM
I used to do that too until a while ago. For fun I tried opening a .tar.gz in my bare windows 7. And guess what, it just opened like a regular .zip. Since then I've just been mailing people .tar.gz's. :D Occasionally I get a confused reply and need to suggest they double click it in the file browser.

I consider it revenge for people sending me empty emails with the message in an attached .doc that force me to read a simple message in an office clone or .ppt's that I can't open at all.
LOL, it seems Windows is slowly catching up.

I thought that OpenOffice could open PPT? I sometimes get Publisher files, though, that OO cannot open.

miegiel
December 23rd, 2010, 04:46 PM
Why do people still use rar... I honestly do not get it?

What I don't like about rar is the license. And now I think of where I bump into rar's, it's usually in places where you can find loads of software to download (legal here, but illegal in most countries). I've understood rar's have some kind of parity, which is useful if you need to repair a corrupted archive. I assume people who don't care about linux because windows is "free" too, won't care about rar's license either. But I have no idea why they'd have so many corrupted archives that they love rar.


LOL, it seems Windows is slowly catching up.

I thought that OpenOffice could open PPT? I sometimes get Publisher files, though, that OO cannot open.

Hmm, I only get publisher files that I can't open.