11/22/2014
DifferenceBetweenZIPandGZIP|DifferenceBetween|ZIPvsGZIP
DifferenceBetweenZIPandGZIP
CategorizedunderProtocols&Formats,Software,Technology|DifferenceBetweenZIPandGZIP
ZIPvsGZIP
ZIP and GZIP are two very popular methods of compressing files, in order to
savespace,ortoreducetheamountoftimeneededtotransmitthefilesacross
the network, or internet. In general, GZIP is much better compared to ZIP, in
termsofcompression,especiallywhencompressingahugenumberoffiles.
SoftwarethatusetheZIPformatarecapableofbotharchivingandcompressing
the files together. These are two separate processes. Compression reduces the
sizeofthefilewiththeuseofalgorithms,whilearchivingcombinesmultiplefiles,sothattheoutputis
asinglefile.GZIPispurelyacompressiontool,andreliesonanothertool,commonlyTAR,toarchive
thefiles.
Itmightseemlikeaminorthing,butitcanaffecttheexperienceoftheuserincertaininstances.The
commonpracticewithGZIP,istoarchiveallthefilesintoasingletarballbeforecompression.InZIP
files, the individual files are compressed and then added to the archive. When you want to pull a
singlefilefromaZIP,itissimplyextracted,thendecompressed.WithGZIP,thewholefileneedstobe
decompressedbeforeyoucanextractthefileyouwantfromthearchive.Whenpullinga1MBfilefrom
a10GBarchive,itisquiteclearthatitwouldtakealotlongerinGZIP,thaninZIP.
GZIPs disadvantage in how it operates, is also responsible for GZIPs advantage. Since the
compressionalgorithminGZIPcompressesonelargefileinsteadofmultiplesmallerones,itcantake
advantage of the redundancy in the files to reduce the file size even further. If you archive and
compress 10 identical files with ZIP and GZIP, the ZIP file would be over 10 times bigger than the
resultingGZIPfile.
Althoughbothcanbeusedwithalmostanyoperatingsystem,eachispopularincertainsystems.ZIP
isverypopularwiththeWindowsoperatingsystem,andhasevenbeenincorporatedintothefeatures
of the OS itself. GZIP has a large following in the UNIXlike operating systems, such as the many
Linuxdistributions.
Summary:
1.GZIPcanachievebettercompressioncomparedtoZIP.
data:text/htmlcharset=utf8,%3Ch2%20class%3D%22posttitle%22%20style%3D%22margin%3A%2025px%200px%200px%3B%20padding%3A%200px%200
1/2
11/22/2014
DifferenceBetweenZIPandGZIP|DifferenceBetween|ZIPvsGZIP
2.ZIPiscapableofarchivingandcompressingmultiple
files,whileGZIPisonlycapableofcompression.
3. You can easily extract individual files from a large
ZIPfile,butnotfromaGZIPtarball.
4. ZIP is fairly popular on Windows, while GZIP is
morepopularonUNIXlikeoperatingsystems.
data:text/htmlcharset=utf8,%3Ch2%20class%3D%22posttitle%22%20style%3D%22margin%3A%2025px%200px%200px%3B%20padding%3A%200px%200
2/2