r/askscience • u/[deleted] • 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
1
u/_NW_ Jun 18 '12
Every email that comes in to my server, i send through md5sum and append to a file. I have a program to convert that to pure random bits. It is never compressable. I'm just saying that randomness cannot be compressed.