5 ms·
This is conflating archive format with compression algorithm. The very broad statement "7-Zip achieves a better compression ratio, but it is much slower to com
by david_draco 5y ago
This is conflating archive format with compression algorithm.
The very broad statement "7-Zip achieves a better compression ratio, but it is much slower to compress than RAR" should be demonstrated over all compression levels with a curve of compression-ratio vs time. I am skeptical RAR cannot be outperformed by 7zip in at least some situations.
The license is the strongest argument to not use RAR.
- ihateolives 5y ago> The license is the strongest argument to not use RAR. Why? Most of the daily tools that keep business world running are closed source. Excel. Or Photoshop. Or Windows/MacOS itself. But RAR license and not being open source is now pushing it too far? Really?
- ClumsyPilot 5y agoIts okay to have some business spesific software be closed source, say Excell. But an archive is needed every time you download a collection of files from a government website, or make GDPR request for your data to google. So by choosing RAR you would be forcing millions of people, maybe entire country to use that company's product and giving them power. Is there any good reason for that?
- vetinari 5y agoAnd what's the difference compared to forcing docx/xlsx or psd? The network effects affect every exchange, not just archives.
- klez 5y agodocx/xslx are open formats. About psd, yes, that's proprietary. What government agency mandates its use for the public to interact with them? (genuinely asking, not being snarky)
- vetinari 5y ago> docx/xslx are open formats. In theory, yes. In practice, you will see files in transitional schema in the wild and you need MS Office to work with them, unless they are not just a very basic document. (I had a similar case in the past, the document contained forms, and it would not render properly even with MS Office for Mac available at the time). > About psd, yes, that's proprietary. What government agency mandates its use for the public to interact with them? (genuinely asking, not being snarky) Not aware of G2C, but in other scenarios, it happens. In our country, public administration is not allowed to use rar either. Only zip, tar, gz, and tar.gz. Despite that, I did receive a rar once; also an Outlook .msg file. Rar was not really a problem, and .msg was solved by communicating with the other side (Mac Outlook cannot open them).
- ClumsyPilot 5y agoIf a government forces it's people to use particular software, it has a duty to provide that software to the entire population. If a parliament decides to pay $X billion to Microsoft, for a lisence for all of UK, well, that sucks, but they can fight over it like they do with all other random spending they do. If it's not willing to pay the cost, it is basically creating a monopoly for that firm, and I have to pay for it. The potential for lobbying and corruption is off the scale here.
- vetinari 5y agoI see where you come from, and in principle agree with you, but it is not how the real world works. For an extreme example, see South Korea and their ActiveX problem.
- FeepingCreature 5y agoNo, those are also bad - but harder to displace.
- xtracto 5y agoThe same people that moan about some software being closed source will come back later crying because said software became a SaaS internet business with monthly fees... There's nothing wrong with closed source for profit software. I'll never understand why people in this field push to discredit a honest way to earn money from the work they do... It's as if Medics would cry because other medics are charging them for a medical visit. Dirty medics trying to profit from their knowledge and time!!
- josephcsible 5y ago> It's as if Medics would cry because other medics are charging them for a medical visit. Dirty medics trying to profit from their knowledge and time!! No, it's as if one medic told another medic "you're not allowed to use any knowledge you got from my visit to help your patients unless you pay me".
- gompertz 5y agoI'll be the one to say it: because a large majority of programmers are liberals, democrats, and anti-capitalist. And they feel everyone else should be too.
- CRConrad 5y ago> The same people that moan about some software being closed source will come back later crying because said software became a SaaS internet business with monthly fees... You're saying that in a "Gotcha!" tone, as if you've caught these people out in an inconsistency. You haven't; there is no such inconsistency. Closed source can be bad even if SaaS is even worse.
- vetinari 5y ago7-zip is single-threaded (by default; there are switches you can play with and -mt is not enough), which means, that you are waiting for your stuff to compress, while simultaneously most of your cores are idle. I don't know what winrar uses, I don't use it; but this is my annoyance with 7zip.
- Ardren 5y agoI 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.
- vetinari 5y agoYes, 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 be compressed quickly and you will be still waiting for the huge one to finish with a single core. And then there are apps that use liblzma underneath. `flatpak build-bundle` can take almost forever.
- Ardren 5y agoI 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?
- Hello71 5y ago> the -mt option seems to allocate core per file this can't be true in solid archive mode, which should almost always be used (otherwise you might as well use zip). also: $ tee {1..10} <<< 1 1 $ seq 1 1000000 > 11 $ time 7z a x.7z {1..11}; rm x.7z 7-Zip (z) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26 64-bit locale=en_US.UTF-8 Threads:12, ASM Scanning the drive: 11 files, 78888917 bytes (76 MiB) Creating archive: x.7z Add new data to archive: 11 files, 78888917 bytes (76 MiB) Files read from disk: 11 Archive size: 2680630 bytes (2618 KiB) Everything is Ok 7z a x.7z {1..11} 19.89s user 0.09s system 205% cpu 9.733 total $ time 7z a -mmt=1 x.7z {1..11}; rm x.7z 7-Zip (z) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26 64-bit locale=en_US.UTF-8 Threads:12, ASM Scanning the drive: 11 files, 78888917 bytes (76 MiB) Creating archive: x.7z Add new data to archive: 11 files, 78888917 bytes (76 MiB) Files read from disk: 11 Archive size: 2779833 bytes (2715 KiB) Everything is Ok 7z a -mmt=1 x.7z {1..11} 21.88s user 0.05s system 99% cpu 21.943 total