🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8868

Re: Let's put compression into NNTP -- I am willing to pay

#8868
From: Shane Castle
Date: Fri, 28 Jun 1996 00:00
83 lines
4152 bytes
In news.software.nntp, Mark Delany<markd@mira.net.au> wrote:
>bugs@freebsd.netcom.com (Mark Hittinger) writes:
>>brad@clarinet.com (Brad Templeton) writes:
>>>So I want to investigate getting compression into NNTP,

>Returning to Brad's original query about compressed NNTP. Well, I have
>some bad news. Large articles tend not to offer great compression
>rates using either compress or gzip.

>To demonstrate this, do the following:
>	find /var/news/alt/binaries -type f -print | grep '[0-9]' | 
>		perl -nle 'print if -s > 30000;' | head -100 >/tmp/bin.flist
>That is, select the first 100 articles that are greater than 30K bytes
>in size.
>Next, determine the compressability of the files:
>	cat `cat /tmp/bin.flist` | wc -c
>	cat `cat /tmp/bin.flist` | compress | wc -c
>	cat `cat /tmp/bin.flist` | gzip | wc -c
>The outputs I got were: 15.6M, 13.6M and 11.3M.

You have selected the worst-case candidates for compression.  Articles
in binary newsgroups are usually uuencoded, producing text files that
do not lend themselves well to compression.

Trying this on some other hierarchy gives much different results.  For
example, on my news server, running the above using
"/var/spool/news/comp" as the top-level hierarchy and '10000' as the
size selector in the Perl script gives 3.57x10^6, 1.65x10^6, and
1.28x10^6, or savings of 53.8% for compress and 64.1% using gzip.

>I tried this on a number of different samples and the ratios do vary a
>bit so some caution is needed when interpreting the results.

Yes indeedy.

>In general though, these results show the maximal compression of
>articles possible across an NNTP link (in reality, they won't do as
>well as there are fixed protocol overheads etc).

I think rather that your results show the *minimal* possible
compression of articles.

>That's the case for a stream of compressed data. If compression was
>done on an article basis (say, uncompressed headers and compressed
>body) the ratios diminish significantly for small articles but still
>remain about the same for the large article sample above.

Same results should obtain.  As the size of the article grows, the
compression percentage should approach the maximal.

>The question then is this.  Does this sort of saving justify a
>reworking of NNTP and associated servers to deal with compressed
>traffic/articles?

I should say emphatically yes.

>Would a specialized compressor help?

Most probably.

>Regarding non-binary articles. I ran the above tests with non-binary
>groups and the compression ratios are more encouraging, but obviously
>of less net impact.

Hmm, just what non-binary groups did you select?  If you used the
same size criteria (>30000) then I suspect that you would have
skipped a large number of potentially compressible articles.

>The other point about non-binary articles is that the header
>consitutes around 30% of the total article size so an uncompressed
>header and a compressed body is probably of marginal benefit in the
>grand scheme of things.

It could still result in a total article size that is 50% or less of
the original size.

--
Shane Castle             | "Perfection, then, is finally achieved, not
Boulder County Info Svcs | when there is nothing left to add, but when
Boulder CO USA           | there is nothing left to take away."
                         |                - Antoine de Saint-Exup�ry

Technical Details
Message-ID: <4r1478$1f7q@bcx01.boco.co.gov>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4qs8mb$abu@fugue.clari.net> <4qt7k2$3hf@dfw-ixnews1.ix.netcom.com> <4qvd4l$3d7$1@bushwire.mira.net.au>

Show Full Headers
Complete Article Headers
Message-ID: <4r1478$1f7q@bcx01.boco.co.gov>
Subject: Re: Let's put compression into NNTP -- I am willing to pay
Date: Fri, 28 Jun 1996 00:00:00 +0000
From: swcxt@boco.co.gov (Shane Castle)
References: <4qs8mb$abu@fugue.clari.net> <4qt7k2$3hf@dfw-ixnews1.ix.netcom.com> <4qvd4l$3d7$1@bushwire.mira.net.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 162615622
Organization: Boulder County Tech Svcs, Boulder CO USA
Reply-to: swcxt@boco.co.gov (Shane Castle)
Newsgroups: news.software.nntp