Article View: news.software.nntp
Article #62482Re: xBin (Power-Post 2003 - requesting input from authorities..)
From: Curt Welch
Date: Sat, 28 Dec 2002 17:51
Date: Sat, 28 Dec 2002 17:51
49 lines
4118 bytes
4118 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > > Why, when picking a block size that works for uuencode is totaly > > harmless, would you pick a block size that didn't work for > > uuencode - probably still the most common posting format on > > Usenet? > > but it _does_ work for uuencode. Sure, and "it _does_" work with any block size. The need for picking a hash block size which is a multiple of 45 is small, but what you haven't shown me is that the justification for making it not a multiple of 45 is greater. When you make a decission,you need to weigh the advantages and disadvantages of all your options. The advantage for using a block size which is a multiple of 45 are clear (better backward compatibility with current practice), even though they are not huge. What are the advantages for picking a block size which is not a multiple of 45? Show me why that would be more important to usenet, or to the success of this standard? Before I wrote some xBin code, my thought was "of couse you would use a po2 block size". After writing the code, I realized the only difference in my code was the value in a #define which defined the size of a buffer. And using different values had no performance implications to the code other than "larger was better". 4500, or 4096, both worked the same. From years of dealing with blocks on disks and pages in memory I've been conditioned to think that when you attack these problems you always want to keep your blocks aligned with other block sizes in the system. But, most of the xBin hash work is sequential. You scan the article sequentially, not randomly block by block. And when you scan it sequentially, the io package and OS does a fine job of optimizing evertything (like it does when you read variable length lines from a file) so there is no messy code to deal with or any significant performance difference. Even when combining received parts out-of-order to create the finished file, the IO will be done sequenctially for the length of the part which will be >100K of IO done sequentially in a middle section of a larger file. Even though it "feels wrong" to use a non po2 block size, I just can't find a good reason not to use something that works well with uuencode. Not only a multiple of 45 to deal with the line problem, but a multiple which gives users the type of line counts they are use to (multiples of 100 lines or 500 lines or 1000 lines for example). -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20021228125143.144$oG@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!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com> <1rfzsoaacf.fsf@vingodur.ifi.uio.no> <20021223180543.105$Wn@newsreader.com> <20021223185652.700$BS@newsreader.com> <20021223203608.351$Qp@newsreader.com> <1r7kdvz3q7.fsf@sjau.ifi.uio.no> <20021227142358.445$DK@newsreader.com> <1r3cojz1f3.fsf@sjau.ifi.uio.no> <20021228011425.941$nG@newsreader.com> <1rfzsigxe8.fsf@tva.ifi.uio.no>Show Full Headers
Complete Article Headers
Message-ID: <20021228125143.144$oG@newsreader.com>
Subject: Re: xBin (Power-Post 2003 - requesting input from authorities..)
Date: Sat, 28 Dec 2002 17:51:43 +0000
From: curt@kcwc.com (Curt Welch)
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com> <1rfzsoaacf.fsf@vingodur.ifi.uio.no> <20021223180543.105$Wn@newsreader.com> <20021223185652.700$BS@newsreader.com> <20021223203608.351$Qp@newsreader.com> <1r7kdvz3q7.fsf@sjau.ifi.uio.no> <20021227142358.445$DK@newsreader.com> <1r3cojz1f3.fsf@sjau.ifi.uio.no> <20021228011425.941$nG@newsreader.com> <1rfzsigxe8.fsf@tva.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!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com akwJRNLXHa7HNuQC0xLuD3am6xZe22QZNVV@5g_mroFqKhN6
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: 48