🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87244

Re: About compression ratio

#87244
From: Julien ÉLIE
Date: Wed, 18 Nov 2015 19:42
34 lines
2272 bytes
Hi Ken,

>> In summary:
>> * 1-line commands and answers have a greater size when compressed;
>
> This is certainly be true for short sessions such as your tests.  I
> would expect the compression ratios to get a little better over time as
> the dictionary builds up and there is some repetition in the traffic,
> but I could be wrong.

I'll try to simulate that.



>> * 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.

-- 
Julien ÉLIE

« Exegi monumentum aere perennius. » (Horace)

Technical Details
Message-ID: <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
References: <n2d9ha$41r$1@news.trigofacile.com> <n2dger$bo1$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <n2ikbj$3eb$1@news.trigofacile.com>
Subject: Re: About compression ratio
Date: Wed, 18 Nov 2015 20:42:43 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <n2d9ha$41r$1@news.trigofacile.com> <n2dger$bo1$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
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 18 Nov 2015 19:42:43 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="aaubervilliers-651-1-341-170.w83-114.abo.wanadoo.fr:83.114.228.170";
 logging-data="3531"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0)
 Gecko/20100101 Thunderbird/38.3.0
In-Reply-To: <n2dger$bo1$1@news.trigofacile.com>
X-Received-Body-CRC: 576138138
X-Received-Bytes: 2257