Thread View: news.software.nntp
13 messages
13 total messages
Started by MinnieMouse
Tue, 26 Mar 2002 14:17
Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: MinnieMouse
Date: Tue, 26 Mar 2002 14:17
Date: Tue, 26 Mar 2002 14:17
26 lines
2331 bytes
2331 bytes
Hello group, I'm having a semi-serious debate over the benefits or not, of UUE vs yEnc encoding with dial-up modem compression, in another NG 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. The gist of my argument is that yEnc starting "lean" remains "lean" and will be a faster upload than a UUE binary file (for argument's sake, let's say everything else remains the same). His stance is as follows. UUE converts a binary file into 7bit ASCII txt characters. Even though UUE adds 33% "fat" it allows the dial-up modem a high compression rate.... thus, the argument is that dial-up modem users (56kb only?) benefit from UUE rather than yEnc. Can anyone shed a bit of supporting evidence, one way or another? Thanks MM.
Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: Andrew - Supernews
Date: Tue, 26 Mar 2002 15:43
Date: Tue, 26 Mar 2002 15:43
42 lines
2744 bytes
2744 bytes
In article <9la1aug5t6dgspls4ovk9p7slb9cstquq4@4ax.com>, MinnieMouse wrote: > Hello group, > I'm having a semi-serious debate over the benefits or not, of UUE > vs yEnc encoding with dial-up modem compression, in another NG > > 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. This is not quite true. A perfect compression algorithm could compress uuencoded data down to the original unencoded size, assuming the original data was uncompressible. gzip indeed gets pretty close to that. However, V.42bis is not as good, and while it will compress uuencoded data somewhat it still leaves it larger than the original size. My own limited tests suggest that V.42bis negates about half of the overhead of uuencoding. (i.e. the encoded data takes 20% longer to download rather than 40%.) > To me, a UUEncoded binary remains a binary file. uuencoding increases the size of the data without increasing the actual information content, which is why the encoded data should be compressible even though the original data wasn't. However, that doesn't allow the data to be compresed to less than it's pre-encoding size unless the original data is itself compressible. > His stance is as follows. UUE converts a binary file into 7bit ASCII > txt characters. Even though UUE adds 33% "fat" it allows the dial-up > modem a high compression rate.... thus, the argument is that dial-up > modem users (56kb only?) benefit from UUE rather than yEnc. if he's arguing that UUE is better for dialup users than yenc, then he's also wrong. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: Stephen Lee
Date: Tue, 26 Mar 2002 16:16
Date: Tue, 26 Mar 2002 16:16
49 lines
3296 bytes
3296 bytes
Here are the results of a very simple test based on the NVidia driver 28.32_winxp.exe: 28.32_winxp.exe - 8,606,055 - Executable 28.32_winxp.exe.zip - 8477703 - Executable file zipped 28.32_winxp.uue - 11,857,264 - Encoded with uuencode 28.32_winxp.zip - 8,873,718 - Compressed with Zip's best compression 28.32_winxp.y - 8,864,237 - Approximate yEnc file (increased 3%, I don't have a utility handy for this) As you can see, based on these numbers, your friend is closer than one might expect. However, your modem's ability to compress files won't be this good. On the average, your far better off using yEnc instead of UUE. Keep in mind, your modem will also compress data contained within a yEnc file. Refer to the compressed executable results. At any rate, I hope this helps. Steve "MinnieMouse" <YencPoswerPost@edu.com> wrote in message news:9la1aug5t6dgspls4ovk9p7slb9cstquq4@4ax.com... > Hello group, > > I'm having a semi-serious debate over the benefits or not, of UUE > vs yEnc encoding with dial-up modem compression, in another NG > > 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. The gist of my argument is that yEnc starting "lean" > remains "lean" and will be a faster upload than a UUE binary file (for > argument's sake, let's say everything else remains the same). > > His stance is as follows. UUE converts a binary file into 7bit ASCII > txt characters. Even though UUE adds 33% "fat" it allows the dial-up > modem a high compression rate.... thus, the argument is that dial-up > modem users (56kb only?) benefit from UUE rather than yEnc. > > Can anyone shed a bit of supporting evidence, one way or another? > > Thanks > MM.
Re: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: Russ Allbery
Date: Tue, 26 Mar 2002 16:31
Date: Tue, 26 Mar 2002 16:31
18 lines
1740 bytes
1740 bytes
Stephen Lee <slee@NO.SPAM.kscable.com> writes:
> Keep in mind, your modem will also compress data contained within a yEnc
> file. Refer to the compressed executable results.
In general it won't, because in general the data encoded with yEnc will
already be compressed and yEnc's added overhead is highly unlikely to be
detectable and compressible by a modem.
Remember, nearly everything posted to Usenet other than text is already
compressed.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: MinnieMouse
Date: Tue, 26 Mar 2002 20:50
Date: Tue, 26 Mar 2002 20:50
53 lines
3636 bytes
3636 bytes
On Tue, 26 Mar 2002 15:43:30 -0000, andrew+nonews@supernews.com
(Andrew - Supernews) wrote:
>In article <9la1aug5t6dgspls4ovk9p7slb9cstquq4@4ax.com>, MinnieMouse wrote:
>> Hello group,
>> I'm having a semi-serious debate over the benefits or not, of UUE
>> vs yEnc encoding with dial-up modem compression, in another NG
>>
>> 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.
>
>This is not quite true.
>
>A perfect compression algorithm could compress uuencoded data down to
>the original unencoded size, assuming the original data was uncompressible.
>gzip indeed gets pretty close to that. However, V.42bis is not as good,
>and while it will compress uuencoded data somewhat it still leaves it
>larger than the original size.
>
>My own limited tests suggest that V.42bis negates about half of the overhead
>of uuencoding. (i.e. the encoded data takes 20% longer to download rather
>than 40%.)
>
I understand. The original uncompressable binaries, such as mpegs,
Zips, RARs and JPGs are relatively untouched ("compressed") by the
modem algorithms, but the UUE portion is compressable data and
therefore that portion gets compressed.
>> To me, a UUEncoded binary remains a binary file.
>
>uuencoding increases the size of the data without increasing the actual
>information content, which is why the encoded data should be compressible
>even though the original data wasn't. However, that doesn't allow the
>data to be compresed to less than it's pre-encoding size unless the
>original data is itself compressible.
>
>> His stance is as follows. UUE converts a binary file into 7bit ASCII
>> txt characters. Even though UUE adds 33% "fat" it allows the dial-up
>> modem a high compression rate.... thus, the argument is that dial-up
>> modem users (56kb only?) benefit from UUE rather than yEnc.
>
>if he's arguing that UUE is better for dialup users than yenc, then he's
>also wrong.
From what you said, I conclude that yEnc is better. Better in the
sense that I would UL/DL less data than with UUE encoded binaries..
Thanks
MM
Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: Greg Andrews
Date: Fri, 29 Mar 2002 00:16
Date: Fri, 29 Mar 2002 00:16
29 lines
2110 bytes
2110 bytes
MinnieMouse <YencPoswerPost@edu.com> writes:
>>
>I understand. The original uncompressable binaries, such as mpegs,
>Zips, RARs and JPGs are relatively untouched ("compressed") by the
>modem algorithms, but the UUE portion is compressable data and
>therefore that portion gets compressed.
>
Simple response: Nope.
More complex response: Just because a stream of bytes/octets does
not encode information into all 7 or 8 bits, does not make that stream
compressible by V.42bis.
V.42bis compression exploits redundancy in the data stream. Redundancy
in the stream of bytes/octets being sent through the modems means
repeating patterns of characters.
When a non-compressible (i.e. non-repeating) byte stream is uuencoded,
the output still contains mostly non-repeating patterns of characters.
Uuencoding makes the data more compressible, but only a little.
-Greg
--
+++++ Greg Andrews +++ gerg@panix.com +++++
I have a map of the United States that's actual size
-- Steven Wright
Re: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: Greg Andrews
Date: Fri, 29 Mar 2002 00:19
Date: Fri, 29 Mar 2002 00:19
18 lines
1761 bytes
1761 bytes
"Stephen Lee" <slee@NO.SPAM.kscable.com> writes: > >As you can see, based on these numbers, your friend is closer than one might >expect. However, your modem's ability to compress files won't be this good. >On the average, your far better off using yEnc instead of UUE. Keep in >mind, your modem will also compress data contained within a yEnc file. > What does this mean? Are you saying the modem will attempt compression of a non-compressible file and slow the transfer down? Or the modem will extract a little performance out of compressing a yEnc file? -Greg -- +++++ Greg Andrews +++ gerg@panix.com +++++ I have a map of the United States that's actual size -- Steven Wright
Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: Greg Andrews
Date: Fri, 29 Mar 2002 00:41
Date: Fri, 29 Mar 2002 00:41
47 lines
2882 bytes
2882 bytes
lordsnow@home.nl (=-lordsnow-=) writes: > >Even if the original binary doesn't compress, the padding done by >UUE (it shifts 3 into 4 bytes, adding two 0 bits in every byte) >should be highly compressible - the two 0 bits in every byte is >totally redundant information. > But modems don't remove the redundant bits from the bytes, so saying they're redundant is fairly meaningless when you're talking about compression. 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. >> >> Also, most dial-up modem manuals tell you to turn compression off > >Hmmm.. modems should detect if something is compressible or not, and >then use compression or not. > V.42bis required modems to do this and defined messages that the modems could exchange to signal "compression off" and "compression on". MNP5 did not, so it's pretty much impossible for modems to enable and disable compression on the fly. The writers of dial-up instructions want to give the end user one simple step that will work consistently for everyone. That usually means "turn compression off", so the folks who only have MNP modems won't scream at the support folks. -Greg -- +++++ Greg Andrews +++ gerg@panix.com +++++ I have a map of the United States that's actual size -- Steven Wright
Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: Andrew - Supernews
Date: Fri, 29 Mar 2002 00:55
Date: Fri, 29 Mar 2002 00:55
30 lines
2378 bytes
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
Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: Claus Färber
Date: Fri, 29 Mar 2002 11:53
Date: Fri, 29 Mar 2002 11:53
57 lines
3516 bytes
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
Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: 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
Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: Thore Harald Hoye
Date: Thu, 04 Apr 2002 08:53
Date: Thu, 04 Apr 2002 08:53
12 lines
1568 bytes
1568 bytes
In article <04smau09f7bivjjhp16gd7jj3rqnfk2to0@4ax.com>, MinnieMouse wrote: > 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. And he just demonstrated that you are fairly correct. With modem-like compression, an yEnced article still has about 4% overhead, while a uuencoded article has 24% or more (down from the original 35%).
Re: Ping: UUE, yEnc and Modem compression Cognoscenti -- A Question
Author: Ben Rosengart
Date: Tue, 09 Apr 2002 22:15
Date: Tue, 09 Apr 2002 22:15
20 lines
1951 bytes
1951 bytes
In article <a80bp1$7pn$1@news.panix.com>, Greg Andrews wrote: > > V.42bis compression exploits redundancy in the data stream. Redundancy > in the stream of bytes/octets being sent through the modems means > repeating patterns of characters. > > When a non-compressible (i.e. non-repeating) byte stream is uuencoded, > the output still contains mostly non-repeating patterns of characters. > > Uuencoding makes the data more compressible, but only a little. Hmm, it's too bad that no clever modem protocol standardizer ever thought to use uudecode as a compression algorithm. -- Ben Rosengart (212) 741-4400 x215 1. A robot may not injure entertainment industry profits, or, through inaction, allow entertainment industry profits to come to harm. --Matt McLeod
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads