Compression of files

It is possible to compress several files into a single one.

There are couple reasons for doing so:

  1. It is easier to distribute one compressed file than several files. You can think of downloading a file from the Internet. It will be easier to download a single file that later can be expanded, than downloading several files individually.
  2. It saves disk space. Even so disk space is not an issue during these days, compressed files will take less volume of space in a medium.

Different compression utilities have different compression ratio. Out of popular compression formats are zip format in Windows and tar.gz in Linux/BSD/Apple OS.

Compression ratio will also depend on what type of data is compressed. Text files compress well, since these have a lot of reparations, but binary files such as executable files or data files may not compress well.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator