🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57745

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

#57745
From: Claus Färber
Date: Fri, 29 Mar 2002 11:53
57 lines
3516 bytes
MinnieMouse <YencPoswerPost@edu.com> schrieb/wrote:
>    Basically, my stance is that dial-up modem compression algorithms,
> don't compress binaries that well. Actually, these algorithms, add a
> little "fat". So, wether the binary is UUEncoded or yEnc ecoded, there
> is "no compression" by the modem to speak of. We do agree that if the
> file is a text only file, then these compression routines work very
> well. Also, most dial-up modem manuals tell you to turn compression
> off, when uploading binary files. To me, a UUEncoded binary remains a
> binary file.

No, it isn't. UUENCODE (and Base64) only uses a small subset of
octets, which would be assigned shorter bit sequences by a
Huffmann encoding.

Well, profile, don't speculate. An example for a "typical" zip
file (YMMV):

             | original      gzip       bzip2      compress
  -----------+--------------------------------------------------
  original   |  597 kB      583 kB      585 kB   (no savings)
  Base64     |  806 kB      602 kB      602 kB      740 kB
  quoted-p.  | 1368 kB      754 kB      661 kB      761 kB
  yEnc       |  620 kB      603 kB      595 kB   (no savings)

Or, in percentages:

             | original      gzip       bzip2      compress
  -----------+--------------------------------------------------
  original   | 100,0 %      97,8 %      98,0 %    (100,0 %)
  Base64     | 135,0 %     100,8 %     100,8 %     124,0 %
  quoted-p.  | 229,1 %     126,3 %     110,7 %     127,5 %
  yEnc       | 103,9 %     101,0 %      99,7 %    (103,9 %)


(Note that V.42bis compression used in modems uses BTLZ, which
uses a variant of the LZ78 algorithm; compress uses a variant of
the very same algorithm. Also note that the compression rate
actually achieved is implementation-specific; some modems might
yield a worse compression rate.)

It is a bit strange that quoted-printable (and yEnc) compressed so
badly. I would have expected the escape sequences to compress down
to bit sequences of the same length as the original data. Maybe
this could even be handeled by optimising the compression
algorithm without even changing the file formats.

It's also completly unexpected that gzip compresses base64 as well
as yEnc. (The difference is so small, I consider it random.)

To me, it looks like gzip or bzip2 compression everywhere (news-
spools as well as on the wire) would be the best solution.

Claus
-- 
------------------------ http://www.faerber.muc.de/ ------------------------
OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Technical Details
Message-ID: <8Llu$D0ZcDB@3247.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newspeer.clara.net!news.clara.net!newsfeed.freenet.de!news.space.net!news.muc.de!faerber.muc.de!claus
References: <9la1aug5t6dgspls4ovk9p7slb9cstquq4@4ax.com>

Show Full Headers
Complete Article Headers
Message-ID: <8Llu$D0ZcDB@3247.org>
Subject: Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
Date: Fri, 29 Mar 2002 11:53:00 +0000
From: claus-usenet-20020329@faerber.muc.de (Claus Färber)
References: <9la1aug5t6dgspls4ovk9p7slb9cstquq4@4ax.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!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newspeer.clara.net!news.clara.net!newsfeed.freenet.de!news.space.net!news.muc.de!faerber.muc.de!claus
Newsgroups: news.software.nntp
User-Agent: OpenXP/32 v3.7.7 (Win32) beta @ 2002-03-17-1359d
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Lines: 56