🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53566

Re: Header compression - necessary, useful, senseless ?

#53566
From: J.B. Moreno
Date: Mon, 30 Jul 2001 20:12
49 lines
3249 bytes
In article <20010730110348.224$3g@newsreader.com>, 
 Curt Welch <curt@kcwc.com> wrote:

> archiver@i3w.com (The Archiver) wrote:
> > "J.B. Moreno" <planb@newsreaders.com> wrote:
> >
> > >I just posted a test article using a 8bit scheme proposed by someone on
> > >the USEFOR mailing list: use 8 bit with =,LF and CR escaped using
> > >quoted-printable.
> > >[...]
> > >Actual file size is 366597, my test post was 1.0275 times that, the
> > >original posting was 1.4024 times that.
> >
> > A better 8 bit encoding results in 1.4x ?
> > UUencoding would have added just 33%.
> 
> I think you mis-read that.  uuencoding on NNTP produces a 40% expansion,
> not just 33%.  The 1.4024 number above was the expansion caused by
> uuencoding.  The 1.02 number was the expansion caused by the improved QP
> lite scheme.

Right.  I don't have a lot of pictures sitting around that I could use,
so I used one that had previously been posted (using uuencode).

uuencode         = 514133 bytes
qp-lite-with-nul = 376989 bytes
qp-lite-no-nul   = 382424 bytes  (i.e. 0x00 escaped to "=00").

Of course the uuencoded article had a few extra bytes due to the fact
that it had a longer Path header and the NNTP-Posting-Host type stuff,
but that should be offset by the fact that I used MIME and included a
text section explaining what was happening).

(Note that in this case removing the nuls didn't change things that
much, but that'll vary on a case by case basis).

The advantage of this should be obvious -- it's smaller, faster, and
easier to decode (given a decent text editor you can decode it manually
in just a few seconds, try doing that with uuencode).

The major disadvantage is that it is possible for it to be up to 3
times larger than the original (file consists of nothing but characters
to be escaped).  Fortunately given the general byte spread of binary
files it shouldn't be a real problem -- and there is a solution if it
is (compress the file before QP'ing).

-- 
J.B. Moreno
Technical Details
Message-ID: <300720011612350860%planb@newsreaders.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.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!jfk3-feed1.news.digex.net!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!feed1.newsreader.com!news2.newsreader.com!flame.newsreader.com!planb
References: <3009e.q71214@archiver.winews.net> <20010726131654.725$7w@newsreader.com> <3909a.r71200@archiver.winews.net> <270720011010140353%planb@newsreaders.com> <5023a.u71208@archiver.winews.net> <20010730110348.224$3g@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <300720011612350860%planb@newsreaders.com>
Subject: Re: Header compression - necessary, useful, senseless ?
Date: Mon, 30 Jul 2001 16:12:35 -0400
From: "J.B. Moreno" <planb@newsreaders.com>
References: <3009e.q71214@archiver.winews.net> <20010726131654.725$7w@newsreader.com> <3909a.r71200@archiver.winews.net> <270720011010140353%planb@newsreaders.com> <5023a.u71208@archiver.winews.net> <20010730110348.224$3g@newsreader.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.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!jfk3-feed1.news.digex.net!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!feed1.newsreader.com!news2.newsreader.com!flame.newsreader.com!planb
Newsgroups: news.software.nntp
Organization: bofh wannabe
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 8bit
User-Agent: Thoth/1.2.4 (Carbon/OS X)
X-Trace: flame.newsreader.com -M,6_41gT-l8X_z8kU6Xxzy3JEmR0ucvnLS3cSd9YWitv-xZn
Lines: 48