Article View: news.software.nntp
Article #57881Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
From: MinnieMouse
Date: Wed, 03 Apr 2002 18:27
Date: Wed, 03 Apr 2002 18:27
79 lines
4767 bytes
4767 bytes
On 29 Mar 2002 13:53:00 +0200, claus-usenet-20020329@faerber.muc.de (Claus F๏ฟฝrber) wrote: >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 Well, thanks for the details, but I believe you missed my point. The argument is wether a dial-up user benefits from UL/DL yEnc instead of UUE binary attachements. My opponent believes that UUEncoding a JPG or a RAR files turns the binary into "text" which will allow the modem to better compress the file than yEnc encoding. Modem compression does not delete all of the overhead introduced by UUE. The UUE modem compressed file remains larger than the yEnc encoded file. This translates into a faster UL/DL for the yEnc file. And that is my argument. Again, ZIP, RARs and JPGs files are not easily compressed to any meaningfull degree by modem compression algorithms. And by this I mean from its original size. Your detail analysis proves my point. It appears that you will always UL/DL less data with yEnc than the same file encoded in UUE. Modem compression simply cannot undo the UUE overhead... yEnc wins here. MM
Technical Details
Message-ID:
<04smau09f7bivjjhp16gd7jj3rqnfk2to0@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!newsfeeds.belnet.be!news.belnet.be!news.stealth.net!news.stealth.net!teleglobe.net!teleglobe.net!66.185.86.143.MISMATCH!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!12dc6cf53ab2750!not-for-mailReferences:
<9la1aug5t6dgspls4ovk9p7slb9cstquq4@4ax.com> <8Llu$D0ZcDB@3247.org>Show Full Headers
Complete Article Headers
Message-ID: <04smau09f7bivjjhp16gd7jj3rqnfk2to0@4ax.com> Subject: Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question Date: Wed, 03 Apr 2002 18:27:57 GMT From: MinnieMouse <YencPoswerPost@edu.com> References: <9la1aug5t6dgspls4ovk9p7slb9cstquq4@4ax.com> <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!newsfeeds.belnet.be!news.belnet.be!news.stealth.net!news.stealth.net!teleglobe.net!teleglobe.net!66.185.86.143.MISMATCH!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!12dc6cf53ab2750!not-for-mail Newsgroups: news.software.nntp X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 78 NNTP-Posting-Host: 24.101.121.46 X-Complaints-To: abuse@rogers.com X-Trace: news01.bloor.is.net.cable.rogers.com 1017858477 24.101.121.46 (Wed, 03 Apr 2002 13:27:57 EST) NNTP-Posting-Date: Wed, 03 Apr 2002 13:27:57 EST