2. About me
• PHP/Symfony2 developer at
• PHP 5.3 Zend Certified Engineer
• Symfony Certified Developer
• BS in Computer Science. Ms(Res) student in
Computing Technologies.
• Open source: LadybugPHP
3. What is GZIP?
• GZIP is a lossless compression method,
we can recover the original data once
decompressed.
• It has become the de-facto lossless
compression method for compressing
textual data in websites.
5. How it works?
• It is based on the DEFLATE algorithm,
which is a combination of LZ77 and
Huffman coding.
• First, the LZ77 algorithm replaces repeated
occurrences of data with references.
• Second, Huffman coding assigns shorter
codes to more frequent “characters”.
6. How it works?
This file is huge! That's because the file is not compressed
<33, 9>
LZ77
8. Why GZIP?
• GZIP is not the best compression method,
but there are a few good reasons to use it.
• Provides a good tradeoff between speed
and ratio.
• Difficulty to add newer compression
methods.