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
3
u/1919 Jun 18 '12
Absolutely fascinating, though I do have a followup question.
Lets say you aren't coding a string, and instead you're coding something like a fixnum?