Article View: news.software.nntp
Article #57883Re: Response to Jeremy Nixon's anti-yEnc stance
From: Russ Allbery
Date: Wed, 03 Apr 2002 18:52
Date: Wed, 03 Apr 2002 18:52
34 lines
2857 bytes
2857 bytes
Jeremy <jeremy@exit109.com> writes:
> Non-optimized XHDR is still going to be just as fast as almost
> everyones' line speed.
That's not necessarily true. I went off and actually benchmarked it
(significant negative points to the people who keep arguing against XHDR
without actually testing it; it's not that hard to actually try it), and
with a straight, unoptimized INN server storing binaries in CNFS it's
actually pretty slow:
windlord:~> time perl -MNet::NNTP -e '$nntp = new Net::NNTP; $nntp->group("alt.binaries.pictures.erotica") or die; $nntp->xover([1, 0])'
2.43u 0.27s 0:05.88 45.9%
windlord:~> time perl -MNet::NNTP -e '$nntp = new Net::NNTP; $nntp->group("alt.binaries.pictures.erotica") or die; $nntp->xhdr("content-type", [1, 0])'
0.34u 0.05s 2:13.30 0.2%
Bear in mind that the implementation has to memory map each article, parse
the headers, find Content-Type and remember it, and then unmap the
article.
It's pretty clear that INN needs some kind of standardized support for
including extra headers in the overview without returning them to clients.
I'm trying to figure out the best way to do that without adding really
complex data structures or having to do a bunch more parsing of overview
entries. Most of the ways that I can think of to do it destroy one's
ability to just sendfile() the overview data to the client, not that INN
currently does that but it was an optimization I had some hopes for.
--
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.
Technical Details
Message-ID:
<ylhems1up1.fsf@windlord.stanford.edu>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!nntp.stanford.edu!not-for-mailReferences:
<8p8n8.31174$7b.2840208@bin7.nnrp.aus1.giganews.com> <020420022018166724%planb@newsreaders.com> <ylzo0l79b4.fsf@windlord.stanford.edu> <020420022348446251%planb@newsreaders.com> <1017813067.397665@ok-corral.gunslinger.net>Show Full Headers
Complete Article Headers
Message-ID: <ylhems1up1.fsf@windlord.stanford.edu> Subject: Re: Response to Jeremy Nixon's anti-yEnc stance Date: Wed, 03 Apr 2002 10:52:10 -0800 From: Russ Allbery <rra@stanford.edu> References: <8p8n8.31174$7b.2840208@bin7.nnrp.aus1.giganews.com> <020420022018166724%planb@newsreaders.com> <ylzo0l79b4.fsf@windlord.stanford.edu> <020420022348446251%planb@newsreaders.com> <1017813067.397665@ok-corral.gunslinger.net> 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!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 33 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1017859930 20151 171.64.13.23 (3 Apr 2002 18:52:10 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Common Lisp, sparc-sun-solaris2.6) Cancel-Lock: sha1:jSmoyb2u2TmPDyOUWAi0tzfEDVc=