Article View: news.software.nntp
Article #63936Re: NEWNEWS command
From: Jeffrey M. Vinocur
Date: Fri, 07 Feb 2003 02:49
Date: Fri, 07 Feb 2003 02:49
44 lines
2610 bytes
2610 bytes
In article <20030206194838.136$Ah@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: >jeff@litech.org (Jeffrey M. Vinocur) wrote: >> Recent versions of INN have fixed the horrible inefficiencies >> that made it unusable before, but I think not very many people >> have enabled it even so. > >What was changed? How does it work now? I don't actually know any of the details; I'm just repeating what I hear. The semantics certainly haven't changed, though. >How can "NEWNEWS *i*e*i* <30-minutes-ago>" ever be efficient? My understanding was that the reason it used to be disabled on INN was that the performace was worse than optimal for the query. Obviously there's a lot of time needed to look up a large number of articles, but there's the time that's *inherently* needed, and the time that comes from a bad implementation. The goal should be to get it pretty close to what you'd get if the client kept a .newsrc and just requested the articles since the latest hiwatermark in each group one-by-one, right? I mean, in principle, NEWNEWS isn't *that* expensive. So you have to: - do the equivalent of LIST ACTIVE <wildmat> - in each group, locate the oldest article since <time> - in each group, do the equivalent of XHDR Message-ID <start>- The wildmat could I suppose be expensive, but in practice I doubt it is, and besides, when do you ever bottleneck on CPU time? And ocating the starting article ought to be pretty cheap with binary search, I think. Or am I missing something? -- Jeffrey M. Vinocur jeff@litech.org
Technical Details
Message-ID:
<b1v6ra$uph$2@puck.litech.org>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.ems.psu.edu!news.litech.org!not-for-mailReferences:
<veu0a.1907$cu1.373699@newsfep2-win.server.ntli.net> <b1turm$spd$3@puck.litech.org> <20030206194838.136$Ah@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <b1v6ra$uph$2@puck.litech.org> Subject: Re: NEWNEWS command Date: Fri, 07 Feb 2003 02:49:14 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <veu0a.1907$cu1.373699@newsfep2-win.server.ntli.net> <b1turm$spd$3@puck.litech.org> <20030206194838.136$Ah@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.ems.psu.edu!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 43 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1044586154 31537 66.218.0.75 (7 Feb 2003 02:49:14 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Fri, 7 Feb 2003 02:49:14 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)