🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87262

Re: About compression ratio

#87262
From: Julien ÉLIE
Date: Sat, 28 Nov 2015 19:20
59 lines
2447 bytes
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.

Now done, with (very) limited testing.  They of course prove your 
expectation.

[C] DATE
[S] 111 20151128190322
[C] DATE
[S] 111 20151128190325
[C] GROUP news.software.nntp
[S] 211 8632 1 12886 news.software.nntp
[C] GROUP news.admin.hierarchies
[S] 211 1943 1 3002 news.admin.hierarchies

Number of bytes without compression:

[C] 6
[S] 20
[C] 6
[S] 20
[C] 26
[S] 37
[C] 30
[S] 40

Number of bytes with compression level 9:

[C] 12
[S] 26
[C] 9
[S] 12
[C] 32
[S] 41
[C] 26
[S] 38

The second answer to DATE or GROUP from the server is smaller than the 
first.  That's good.


It would be interesting to do that with real use cases (downloading 
headers and articles from a news client).

-- 
Julien ÉLIE

« Aequum est ut cuius participauit lucrum, participet et damnun. »

Technical Details
Message-ID: <n3cuqg$urp$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> <n2ikbj$3eb$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <n3cuqg$urp$1@news.trigofacile.com>
Subject: Re: About compression ratio
Date: Sat, 28 Nov 2015 20:20:48 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
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
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: Sat, 28 Nov 2015 19:20:48 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="aaubervilliers-651-1-294-16.w83-114.abo.wanadoo.fr:83.114.213.16";
 logging-data="31609"; 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: <n2ikbj$3eb$1@news.trigofacile.com>
X-Received-Body-CRC: 4111465536
X-Received-Bytes: 2446