Pergunta

Which compression method is better? I've heard lots of back and forth about GZip being more widely used, but Deflate being faster (in some instances). Is there an accepted standard on which one to use and why?

Foi útil?

Solução

UPDATE

According to the latest updates to the linked question, one should use GZip. See http://www.vervestudios.co/projects/compression-tests/results

Old Answer

Deflate is better.

Outras dicas

As I have written here: HTTP_compression - Wikipedia

deflate - despite its name the zlib compression (RFC 1950) should be used (in combination with the deflate compression (RFC 1951)) as described in the RFC 2616. The implementation in the real world however seems to vary between the zlib compression and the (raw) deflate compression[3][4]. Due to this confusion, gzip has positioned itself as the more reliable default method (March 2011).

gzip and zlib are file/stream formats that by default wrap around deflate and amongst other things add a checksum which make them more secure and a little slower. The increase in size on the other hand should not be of any concern.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top