🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57736

Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question

#57736
From: Andrew - Supernews
Date: Fri, 29 Mar 2002 00:55
30 lines
2378 bytes
In article <a80d8g$8ri$1@news.panix.com>, Greg Andrews wrote:
> You're approaching the question from the wrong angle.  Modem compression
> (and most byte-oriented compression algorithms) compresses by finding
> repeated patterns of bytes and replacing them with a shorter symbol.
> The modem on the decompression end translates the symbol back into
> the original pattern of bytes.
> 
> If the input byte stream contains patterns of bytes that repeat, then
> the modem compression will increase throughput.  If the input byte
> stream does not have repeating patterns (or only a few), then the
> modem compression won't do much.

you're missing the point.

In a random octet stream, there are 65536 possible two-octet sequences,
and if these are evenly distributed (which they will be), then there is
no way to communicate the information in less than 16 bits each.

In a uuencoded octet stream, then discounting the counts and line
endings there are only 4096 possible two-octet sequences, and this can be
communicated in only 12 bits, which coincidentally is the amount of data
prior to the encoding. A perfect compression algorithm would figure this
out and completely eliminate the encoding overhead; unfortunately the
compression is designed to be general-purpose and therefore doesn't
necessarily find the optimal encoding in all cases.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Technical Details
Message-ID: <slrnaa7esb.1abg.andrew+nonews@trinity.supernews.net>
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!news1.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <9la1aug5t6dgspls4ovk9p7slb9cstquq4@4ax.com> <3ca29e83.11564952@news> <a80d8g$8ri$1@news.panix.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnaa7esb.1abg.andrew+nonews@trinity.supernews.net>
Subject: Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
Date: Fri, 29 Mar 2002 00:55:42 -0000
From: andrew+nonews@supernews.com (Andrew - Supernews)
References: <9la1aug5t6dgspls4ovk9p7slb9cstquq4@4ax.com> <3ca29e83.11564952@news> <a80d8g$8ri$1@news.panix.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!news1.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.nntp
Organization: http://www.supernews.com - all your nntp are belong to us
Reply-To: andrew@supernews.com
User-Agent: slrn/0.9.7.1 (FreeBSD)
X-Complaints-To: newsabuse@supernews.com
Lines: 29