Raul Fraile: How GZIP compression works | JSConf EU 2014

preview_player
Показать описание
Data compression is an amazing topic. Even in today’s world, with fast networks and almost unlimited storage, data compression is still relevant, especially for mobile devices and countries with poor Internet connections.

For better or worse, GZIP compression is the de-facto lossless compression method for compressing text data in websites. It is not the fastest nor the better, but provides an excellent tradeoff between speed and compression ratio. The way Internet works makes it also difficult to use newer compression methods.

This talk examines how GZIP works internally, explaining the internals of the DEFLATE algorithm, which is a combination of LZ77 and Huffman coding. Different implementations will be compared, such as GNU GZIP, 7-ZIP and zopfli, focusing on why and how some of these implementations perform better than others.

Finally, we will try to go beyond GZIP, preprocessing our data to achieve better results. For example, transposing JSON.

License: For reuse of this video under a more permissive license please get in touch with us. The speakers retain the copyright for their performances.
Рекомендации по теме
Комментарии
Автор

Why is the presenter taking up the majority of the screen instead of the slides 90% of the time? Text is unreadable.

Автор

4:31 "facial eggs presentations"
Machine translations FTW!

pauldacus
Автор

Nice informative and neatly presented. Thanks alot

pankaj.parkar
Автор

what's the difference between gzip and zlib?

disorderedenthropy
Автор

Does Gzip change what you see when using View Source?

Crazzilla
Автор

11:04 that huffman encoding is wrong. its impossible to tell whether the first 3 0s are 3 Ls, an H and an L, or a D. Dude didn't even try to make a proper huffman tree, just listed binary strings in lexicographical order and assigned a value to them.

joeye
join shbcf.ru