Live data from Hacker News

Don't Use RAR

group.miletic.net

111–120 of 218 posts

Re: Don't Use RAR

#111
post #98

Earlier quoted context omitted.

Most of these, if no all, is covered by 7-zip.

7z does not offer archive recovery. This has saved my archived data couple of times, which would be gone, if I was using 7z.

I'm not familiar with compression very much, what's the difference between what 7z does versus "archive recovery"? Thanks

Re: Don't Use RAR

#113
One benefit of RAR is when dealing with multi-file archives, you don't need all of the files to be able to decompress one of them. You don't even need a complete file to be able to look inside!

Yes, some of your files will be broken if you don't have the entire archive, but at least you can salvage some of your data. Or you can peek in to make sure you've got the right thing before committing to multi-gigabyte downloads.

Re: Don't Use RAR

#114

RAR reminds me very much of Limewire/eMule/Kazaa days.

I just checked, the eMule homepage is still online: https://www.emule-project.com/

This week I was looking for a book. I couldn't find it at libgen, zlibrary, google with filetype: nor torrent. Fired up aMule, and it had more than 10 sources, downloaded in 30 seconds.

Re: Don't Use RAR

#115
post #89

Earlier quoted context omitted.

I assume you mean command line? The 7zip UI appears to set threads to the number of CPUs by default for LZMA2, and hits 100% on all cores. Zip format also defaults threads to number of CPUs, but only hit 30% CPU (over 16 threads) on some test data.

Yes, I mean command line; it is a long time that I used the gui, though I don't think it is updated often. With command line, I arrived eventually to a set of switches to use, but the -mt option seems to allocate core per file. That means, that if the filesizes of the archived files are not somewhat distributed, it won't work very well. The extreme is, if you have one huge file and few small ones, the small ones will…

I don't think I've ever actually used the official build of 7zip on the command line. Only the older p7zip version on Linux.

The p7zip version by default uses all cores and hits 100% on all of them compressing a single file. Perhaps p7zip or my OS has a different set of default options?

Re: Don't Use RAR

#116

RAR is a full-blown backup format* while 7zip is "just" an archive format. So comparisons are somewhat mood. But even I as a RAR fan and license holder have to agree. For the average joe, sending email attachments, zip or 7z is enough. * It can safe all three file timestamps (From nanoseconds precision (with NTFS), down to only 2 seconds precision (if you want to shave of a view bytes)), ACLs, ADS, Hard and Soft Link…

> From nanoseconds precision (with NTFS)

NTFS does not have nanoseconds precision, only 100-nanoseconds aka FILETIME.

Re: Don't Use RAR

#117
post #98

Earlier quoted context omitted.

7z does not offer archive recovery. This has saved my archived data couple of times, which would be gone, if I was using 7z.

I'm not familiar with compression very much, what's the difference between what 7z does versus "archive recovery"? Thanks

Winrar save extra information to the compressed file. So in case your .rar file damage, it can be recovered.

Re: Don't Use RAR

#118
post #98

Earlier quoted context omitted.

7z does not offer archive recovery. This has saved my archived data couple of times, which would be gone, if I was using 7z.

I'm not familiar with compression very much, what's the difference between what 7z does versus "archive recovery"? Thanks

[deleted]

Re: Don't Use RAR

#119
post #23
post #11

The sightly better file compression with rar is still interesting. But I suppose with today's compute when you think about the time vs space trade-off, time is more important. Space is cheap.

Is not just "slightly better" in some cases. An obvious one is repeated files. If RAR encounters a file ten times, it will compress once and store it and nine pointers. lzma and zstd guis i've tested will store ten compressed copies. It happens all the time in backups.

> If RAR encounters a file ten times, it will compress once and store it and nine pointers.

A bunch of compression formats do that. Even zip files can, which leads to interesting tricks like:

https://www.bamsoftware.com/hacks/zipbomb/

Re: Don't Use RAR

#120
post #86

Earlier quoted context omitted.

You won't be able to do that with RAR files either. The only archive/compression format that you can send anyone is ZIP, since both Windows and macOS can open them ootb.

I wouldn't send a RAR to my grandparents, but if I had to send pictures for a school reunion I would expect everyone to either know how to open a RAR or to be able to figure it out. Worst case they will google rar and will find WinRAR as the first result. For zstd or brotli I can't even name a GUI program able to open them outside a somewhat obscure 7zip fork.

If you sent me a RAR, I'd remind you that it's the 21st century, we all have really fast Internet these days compared to the 90s when RAR was released, and I really don't want to have to install a new piece of software just to open your photos.

(The best bit is that the official WinRAR Linux distribution is a .tar.gz)

Just use ZIP unless your classmates are working solely via tethered 2G connections in Tierra Del Fuego.

Post reply on HN