Article View: news.software.nntp
Article #56931Re: [yEnc] some newbie questions
From: Curt Welch
Date: Tue, 26 Feb 2002 20:21
Date: Tue, 26 Feb 2002 20:21
40 lines
3222 bytes
3222 bytes
Liyang Hu <newsgroups@nerv.cx> wrote: > =-lordsnow-= <lordsnow@home.nl> wrote: > >> Without using arithmetic coding, isn't a uniform distribution the > >> best we can hope to get? (and just cope with having to escape the > >> three special cases?) > > Is having a uniform distribution better than making use of the > > skew tho? It all depends if, on average, the totals of Byte0 + > > Byte10 + Byte13 after arithmetic coding is less than the 'normal'? > > After arithmetic coding, the number of \000, \012 and \016 bytes > will add up to zero. But if the skew before encoding meant it had none of those bytes to begin with, then there will be no expansion using escape characters, but with arithmetic coding, there will always be a fixed expansion. So the question becomes, instead of using artihmetic coding to flaten the skew (at the cost of expansion) might it be better to use some of the skew already in the data? However, that argument (which I've made before here) is not so valid once it was pointed out my math was wrong and it became clear that the expected expansion of arithmetic coding (+.55 chars per 256 when using Base253) is normally a lot less than the expected expansion from yEnc (+3 per 256). If arithmetic coding can be done effecently for this problem (as rumor has it), then it would clearly be better in terms of both reducing the expected expansion, and eliminating the problems caused by worse-case date. However, because we already are forced to add CR LF to keep lines a reasonable length every few hundred characters (we are forced to do that aren't we?), then the savings is is more like 5 to 2.5 chars per 256(line). So it might cut the overhead down by another 50% from where it is now. But it's so low now as to make the change questionable - but worth looking into if you do create any type of yEnc II standard. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20020226152108.753$EN@newsreader.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!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <1rr8nmjix6.fsf@fjorir.ifi.uio.no> <a4knl3$3ol$1@pegasus.csx.cam.ac.uk> <3c7a60b7.469568@news> <a5gp0f$621$1@pegasus.csx.cam.ac.uk>Show Full Headers
Complete Article Headers
Message-ID: <20020226152108.753$EN@newsreader.com>
Subject: Re: [yEnc] some newbie questions
Date: Tue, 26 Feb 2002 20:21:08 +0000
From: curt@kcwc.com (Curt Welch)
References: <3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <1rr8nmjix6.fsf@fjorir.ifi.uio.no> <a4knl3$3ol$1@pegasus.csx.cam.ac.uk> <3c7a60b7.469568@news> <a5gp0f$621$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!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com U5CCzJJB+WC,7NCuCFXBYQ3fef/H5TVKe6Ylpfw8_qXSfhYmG
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 39