- Why we compress files
Smaller files save storage, transmit faster and use less bandwidth.
Compression reduces the number of bits needed to store a file. The benefits:
- Less storage space is used on disks and servers.
- Faster transmission over networks (fewer bits to send).
- Less bandwidth is consumed — important on slow or metered connections.
- Streaming of audio and video becomes practical, as data can be delivered fast enough to play in real time.
- Lower data costs for users on limited mobile plans.
The trade-off is that compression (and sometimes decompression) requires processing time, and some methods reduce quality.
- Less storage; faster transmission; less bandwidth.
- Makes streaming and quick downloads/uploads practical.
- Trade-offs: processing time and (for lossy) quality.