r/askscience • • Jun 17 '12

Computing How does file compression work?

(like with WinRAR)

I don't really understand how a 4GB file can be compressed down into less than a gigabyte. If it could be compressed that small, why do we bother with large file sizes in the first place? Why isn't compression pushed more often?

414 Upvotes

146 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jun 17 '12

[deleted]

1

u/spiral_of_agnew Jun 17 '12

That's better reasoning, thanks.

1

u/ebix Jun 18 '12

Everything here is 100% spot on.

That said, I think most askscience readers would read the first half of your theorem and run for the hills. Were this /r/compsci, or /r/math my post would look a little more like yours =D

Still though, hi-five.