Compression explained: how gzip makes files smaller
Mojo for beginners · 15 of 17
Beginner
One MiB of the letter A shrank to 1,052 bytes with gzip, the same size Python gives. Repeated patterns are written once, and random data does not shrink at all.