🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87226

Re: About compression with NNTP

#87226
From: Ken Murchison
Date: Sat, 14 Nov 2015 14:38
39 lines
3378 bytes
On 11/14/2015 02:07 AM, D. Stussy wrote:
> Note: Although the issue of authentication before or after compression 
> may be moot for other reasons based on another response, there's 
> another issue to consider:  Compression is only beneficial when it 
> results in a shorter transmission length than the uncompressed data.  
> With short commands (i.e. less than 30 characters), depending on the 
> actual data and the compression algorithm used, the compressed version 
> of the data is likely to be equal or larger -- simply because there's 
> not enough data to make it useful - i.e. result in a shorter string.  
> I can't speak for gzip because I don't know its algorithm, but LZW 
> algorithms (e.g. "deflate") do expand on a small amount of data, 
> especially where there are insufficient repeating sequences for 
> compression to be beneficial.
>
> This means that sending short commands such as used in authentication 
> make little sense during compression unless they are included in a 
> much larger data set.

This is a good point.  Its possible that for most reader commands (which 
are typically short), that the client might want to set the compression 
level to 0 and only bump up the compression to a higher level for POST.

For a feeder client, the compression level can probably be left >0 all 
the time.

On the server side, I think the compression level >0 makes sense all of 
the time except when the response contains in-compressible content.

We probably need to do some analysis of "regular" reader and feeder 
traffic with compression enabled to come up with best current practices 
for compression level.

-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University


Technical Details
Message-ID: <n27h1a$pd1$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: <mvjp3s$n0u$1@news.trigofacile.com> <AABWHiG/QCkAACAT.A1.flnews@WStation2.stz-e.de> <mvmahl$iou$1@news.trigofacile.com> <87si5d41ll.fsf@hope.eyrie.org> <AABWH9TID0cAAAnW.A1.flnews@WStation3.stz-e.de> <mvrle0$h20$1@news.trigofacile.com> <AABWIiKDl1EAAEcG.A1.flnews@WStation4.micha.freeshell.org> <n00o8d$5ui$1@news.trigofacile.com> <AABWJLfp/pwAAAn0.A1.flnews@WStation3.stz-e.de> <n03jk8$b2u$1@news.trigofacile.com> <AABWJgKBjCwAAAnv.A1.flnews@WStation3.stz-e.de> <n06897$9he$2@news.trigofacile.com> <n1vneo$228$1@news.trigofacile.com> <n26mjn$k03$2@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <n27h1a$pd1$1@news.trigofacile.com>
Subject: Re: About compression with NNTP
Date: Sat, 14 Nov 2015 09:38:31 -0500
From: Ken Murchison <murch@andrew.cmu.edu>
References: <mvjp3s$n0u$1@news.trigofacile.com> <AABWHiG/QCkAACAT.A1.flnews@WStation2.stz-e.de> <mvmahl$iou$1@news.trigofacile.com> <87si5d41ll.fsf@hope.eyrie.org> <AABWH9TID0cAAAnW.A1.flnews@WStation3.stz-e.de> <mvrle0$h20$1@news.trigofacile.com> <AABWIiKDl1EAAEcG.A1.flnews@WStation4.micha.freeshell.org> <n00o8d$5ui$1@news.trigofacile.com> <AABWJLfp/pwAAAn0.A1.flnews@WStation3.stz-e.de> <n03jk8$b2u$1@news.trigofacile.com> <AABWJgKBjCwAAAnv.A1.flnews@WStation3.stz-e.de> <n06897$9he$2@news.trigofacile.com> <n1vneo$228$1@news.trigofacile.com> <n26mjn$k03$2@snarked.org>
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: Carnegie Mellon University
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 14 Nov 2015 14:38:34 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="Ken"; posting-host="cpe-76-180-151-43.buffalo.res.rr.com:76.180.151.43";
 logging-data="26017"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To: <n26mjn$k03$2@snarked.org>
X-Received-Body-CRC: 1100480921
X-Received-Bytes: 3346