Article View: news.software.nntp
Article #87249Re: About compression ratio
From: Michael Baeuerle
Date: Fri, 20 Nov 2015 09:47
Date: Fri, 20 Nov 2015 09:47
38 lines
2604 bytes
2604 bytes
Julien ÉLIE wrote: > Ken Murchison wrote: > > Julien ÉLIE wrote: > > > > > > * the RFC should not recommend level 0 when no compression is desired > > > but level 1; > > > > The documentation clearly states: "0 gives no compression at all (the > > input data is simply copied a block at a time)". Even if there are an > > additional 4 bytes in the output, the receiver doesn't have to decode > > any of the bits, its a simple copy. I don't know why there are an extra > > 4 bytes. I would have to read RFC 1951 and the zlib docs further. > > According to > http://www.bolet.org/~pornin/deflate-flush.html > these additional bytes are the four-byte sequence 00 00 FF FF added > after a flush. | [Z_PARTIAL_FLUSH] | "will be removed, use Z_SYNC_FLUSH instead" (version 1.2.3 of zlib) | [...] | Note: since the partial flush is now part of the SSH standard, it will | probably be "reprecated" in the next zlib version. The code was not | meant to be removed anyway, but a more descriptive comment will be put | back. In the zlib 1.2.8 documentation I can see no word about 'Z_PARTIAL_FLUSH' still being deprecated. | For newer protocols, the sync flush is still recommended, | because it uses less bandwidth (provided that the trick of removing | the 00 00 FF FF sequence is applied) and is more resilient to stream | damage (thanks to the byte alignment feature). Looks like it would be a good idea to define the flush method that must be used in the new RFC.
Technical Details
Message-ID:
<AABWTuczBokAAAnS.A1.flnews@WStation3.stz-e.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<n2d9ha$41r$1@news.trigofacile.com> <n2dger$bo1$1@news.trigofacile.com> <n2ikbj$3eb$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <AABWTuczBokAAAnS.A1.flnews@WStation3.stz-e.de> Subject: Re: About compression ratio Date: Fri, 20 Nov 2015 10:47:59 +0100 From: Michael Baeuerle <michael.baeuerle@stz-e.de> References: <n2d9ha$41r$1@news.trigofacile.com> <n2dger$bo1$1@news.trigofacile.com> <n2ikbj$3eb$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Lines: 36 Reply-To: Michael Baeuerle <michael.baeuerle@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=fixed Content-Transfer-Encoding: 8bit X-Trace: individual.net 3TaLaZL+cEDUBBb6mJD0iQAraKzDSUi2n9Dm3gCDUosYL5AaA0 X-Orig-Path: not-for-mail Cancel-Lock: sha1:PcvTX7seaK7IZTrrKnQvL5g1RSM= sha1:r5oRi0IqfPH+ixrLczM1aAAjyfk= Injection-Date: Fri, 20 Nov 2015 09:47:59 -0000 User-Agent: flnews/0.12 (for GNU/Linux) X-Received-Bytes: 2415 X-Received-Body-CRC: 1140000132