Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world

33 replies

zip is better than tar.gz for some applications though.

notably, individual files can be read from a zip archive without unpacking the whole archive, different than tar.gz files.

tar.gz files are only better if you pack and unpack the whole archive at once, but even then, they don't have much advantage. the major advantage is that you can pipe the output of tar creation over the network to another computer who decompresses the tar immediately, thus transferring a folder. zip has index at beginning/start, so it requires seek when writing or skip when reading, so it can't be streamed.

65

One thing that I find useful is that you can do --filesync with an existing zip, which means it only updates the files if the date/size don't match. This saves a bunch of time on large archives that don't need to be created from scratch every time.

15

But afaik with many files in an archive a tar.gz manages higher compression ratios since each file isn't compressed individually. It probably isn't relevant unless archiving a large amount of data though.

Does .zip have other advantages though? I don't often need just one file from an archive anyway.

10

honestly most of the time if I'm sending an archive, my main goal is to bundle the files, not ideal compression. zip is the most compatible format

50
zzxreply
lemmy.world

That idea has been thrown around A LOT.

I don't think it'll ever happen tbh

14
abcdreply
feddit.org

That’s definitely not going to happen. One of the few things Windows is doing right is backwards compatibility. Have 30 year old exe? It usually just runs fine. In my experience a lot of business logic relies on this compatibility. It would be stupid from a business standpoint to break this compatibility. It would upset a lot of paying customers.

But wait a second. I’m speaking about Microsoft. All we wanted was a Windows 7 with a modernized GUI. And we got Windows 10 with Cortana, multiple Control panels, redundant settings that contradicted each other. We got Windows 11 with ads everywhere, Copilot, enforced MS accounts and so on.

It would perfectly make sense to switch to Linux. They could fire a lot of devs. I’m sure they would save a lot of money for a couple of seconds.

Obviously they don’t give a shit about customers, so this sounds like a normal thing Microsoft could do for short term gains.

6

All we wanted was a Windows 7 with a modernized GUI.

What? No, keep it the same but keep on supplying security patches. The whole "modernized GUI" was what gave us the wonderful new GUI of Windows 8!

3
lemmy.world

MS: you mean we can fire 95% of the windows devs, and nerds on the internet will just do the work for us?

MS: we love Linux now!

E: stonks 📈

5

They'd lose their moat overnight, not gonna happen

5

Yeah, but it's a two step process. You first unpack the gz, than unpack the tar

1
feddit.nl

Not sure what the issue with zip files is? They're supported on basically every device and afaik are not a proprietary format or anything. Seems better to me than rar or 7z. Tar.gz is also fine, but * don't really see why one would care

14

Considering even Windows can open it without any third-party program, I would say it's quite useful.

5

You reached the end