Article View: news.software.nntp
Article #68357Re: LIST ACTIVE vs GROUP
From: Curt Welch
Date: Fri, 27 Feb 2004 18:07
Date: Fri, 27 Feb 2004 18:07
45 lines
3387 bytes
3387 bytes
Brian Sammon <usenet@brisammon.fastmail.fm> wrote: > I'm poking around at the sourcecode to my newsreader, and I'm trying to > understand some of the design decisions. > When the newsreader starts up, it iterates through the groups I am > subscribed to, doing a "LIST ACTIVE" on each group to determine if there > are any new messages. If it can't do that, it "falls back" to using the > GROUP command. > This suggests to me that the author thought that "LIST ACTIVE" was > preferable to "GROUP" as a method of scanning the group. > The only difference I can see is that "GROUP" selects the group, while > "LIST ACTIVE" (obviously) doesn't. > > Is there any good reason to prefer "LIST ACTIVE" to "GROUP" for this > purpose? Actually, I would say that it's not wise in general to use LIST ACTIVE to scan for new articles instead of using the GROUP command. I suspect it was done because the author found that on the server he was using, it happened to be faster and gave him the same numbers. It was probably significantly faster or else he never would have bothered doing it. However, what's true about performance on one server is quite often not true about the performance of other servers. There could easily be servers where a list active on a single group was slower than a GROUP command. Most newsreaders use the GROUP command to find out the article range of the group when checking for new articles, and very few newsreaders use the article numbers from the LIST ACTIVE command for that purpose. Because of that, it's likely that some servers may have implemented LIST ACTIVE in a way that would make it more out-of-date in terms of the current article numbers than the GROUP command. If your newsreader does things which are more non-standard than other newsreaders, you are increasing the probability that it will cause problems with some server in the future. So, I'd say the safest and "wisest" way is to use GROUP to determine article numbers, and use LIST ACTIVE only to get the list of groups. However, since LIST ACTIVE may be faster, if you are willing to risk potential future problems for speed, a newsreader could gamble on using LIST ACTIVE. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20040227130704.843$DS@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.20140818.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!feed4.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<sjrqg1-541.ln1@brians.username.cs.cmu.edu>Show Full Headers
Complete Article Headers
Message-ID: <20040227130704.843$DS@newsreader.com>
Subject: Re: LIST ACTIVE vs GROUP
Date: Fri, 27 Feb 2004 18:07:04 +0000
From: curt@kcwc.com (Curt Welch)
References: <sjrqg1-541.ln1@brians.username.cs.cmu.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.20140818.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!feed4.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com 8vr0bckL3k83HloWnix/VkUc0Wtj4F3Qyyz+fcfRAlo6Yl,3B@
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: 45