Article View: news.software.nntp
Article #56609Re: [yEnc] some newbie questions
From: Kjetil Torgrim Homme
Date: Mon, 18 Feb 2002 04:45
Date: Mon, 18 Feb 2002 04:45
37 lines
2588 bytes
2588 bytes
[Liyang Hu] > Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > > Agreed, but the current = escape is wasteful. Only seven of 256 > > possible codes are used/needed. > > Seven? Where did you get that number from? (NUL, TAB, CR, LF and > `='. That's five at most.) And there are only 256-5 = 251 possible > codes. NUL, CR, LF and their reflexive value, as well as =. > > The remainder could be used for some common predefined byte > > sequences. > > Right ... we've just agreed that it would be best if the input > stream is random (due to compression). Care to list some `common' > byte sequences? I'm sure there are many people with a large corpus on their harddisk which they can use for analysis. Worst case, input is uniform. This means that the chosen scheme will save 249/65536 ~= 0.4% on average. However, if you consider that a few octets need to escaped and thus double their transfer requirement, choosing sequences with these will improve the ratio considerably. > To avoid the `complexity' of borrowing zlib code, the other > solution is to just mix (XOR or add) the input data with a > pseudo-random sequence. A simple random number generator (with a > fixed seed) is sufficient to ensure that statistically, we've > little or no skew in the character distribution. I'm unconvinced this is true. -- Kjetil T.
Technical Details
Message-ID:
<1rofinbdp1.fsf@sex.ifi.uio.no>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!uio.no!nntp.uio.no!ifi.uio.no!not-for-mailReferences:
<3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <3c702e8c.7007252@news> <a4pknt$4pg$2@pegasus.csx.cam.ac.uk> <1rn0y77ebu.fsf@sex.ifi.uio.no> <a4pq59$a4e$1@pegasus.csx.cam.ac.uk>Show Full Headers
Complete Article Headers
Message-ID: <1rofinbdp1.fsf@sex.ifi.uio.no> Subject: Re: [yEnc] some newbie questions Date: Mon, 18 Feb 2002 04:45:30 +0000 From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> References: <3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <3c702e8c.7007252@news> <a4pknt$4pg$2@pegasus.csx.cam.ac.uk> <1rn0y77ebu.fsf@sex.ifi.uio.no> <a4pq59$a4e$1@pegasus.csx.cam.ac.uk> 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!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail Newsgroups: news.software.nntp Organization: Dept. of Informatics, Univ. of Oslo, Norway Lines: 36 NNTP-Posting-Host: sex.ifi.uio.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: maud.ifi.uio.no 1014007531 27808 129.240.64.170 (18 Feb 2002 04:45:31 GMT) X-Complaints-To: abuse@ifi.uio.no NNTP-Posting-Date: 18 Feb 2002 04:45:31 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7