33

Example: I have a book which I wanna archive. Would sending a zip with the pages take less storage than sending the, let's say, 10 individual pages sparatedly?

you are viewing a single comment's thread
view the rest of the comments
[-] mo_lave@reddthat.com 7 points 5 days ago* (last edited 5 days ago)

I don't know the details, but in principle, the zip compression process tries to identify the textual commonalities between the pages. The more commonalities the 10 pages have, the smaller the zip file will be.

If each page is textually very different, (example, Page 1 is "AB" , Page 2 is "CD", etc.), it's possible that the zip file will be larger. It's because it will contain the full contents of each page, plus the metadata of the zip file.

Anyone more knowledgeable can correct me on this.

[-] BenLeMan@lemmy.world 2 points 4 days ago

Almost correct, except that the patterns it works with are on the byte level. Not all files contain text, after all.

[-] mo_lave@reddthat.com 1 points 2 days ago

Yes, indeed. Thanks for clarifying.

this post was submitted on 04 Dec 2025
33 points (100.0% liked)

Asklemmy

51580 readers
307 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 6 years ago
MODERATORS