Article View: news.software.nn
Article #2551Re: SUMMARY: LISTGROUP patch for NNmaster/nntpd
From: Wayne Davison
Date: Tue, 21 Apr 1992 19:06
Date: Tue, 21 Apr 1992 19:06
32 lines
2367 bytes
2367 bytes
J.P.M. van der Jagt (jeanpaul@duteca.et.tudelft.nl) wrote: > I managed to find a file which contained the source [to LISTGROUP ...] > The patch follows. This implementation of LISTGROUP suffers from a number of irksome details: o It almost completely duplicates the GROUP command's code, which can only serve to make maintenance harder. o It forces you to specify a group name, which is very inefficient if you want to list the current group (which already has an article array with all the article numbers available). o The command name should have started with an 'X'. I took this code a while back and transformed it into a call that will list the current group (using the existing article number array) or the specified group (by first calling the GROUP command for you). This is only slightly less efficient than the previous code if you plan to just issue a whole bunch of LISTGROUPs (e.g. the article numbers will be sorted). It is much more efficient if you are already in a GROUP or need to use the group after listing the article numbers (in which case the prior code kicks you out of whatever group you were in and forces you to issue a GROUP command). I'm planning to include my changes in my next trn patch (version 2.3 -- available God knows when) which will speed up mthreads' extra-expire pass a little bit. I was wondering if I should change the name to something like "XENUM"? Should it only enumerate the current group? Does anyone else besides nnmaster use the LISTGROUP command? -- \ /| / /|\/ /| /(_) Wayne Davison (_)/ |/ /\|/ / |/ \ davison@borland.com (W A Y N e)
Technical Details
Message-ID:
<1992Apr21.190633.28040@borland.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!usc!sol.ctr.columbia.edu!spool.mu.edu!umn.edu!csus.edu!borland.com!davisonReferences:
<1992Apr21.132800.20751@donau.et.tudelft.nl>Show Full Headers
Complete Article Headers
Message-ID: <1992Apr21.190633.28040@borland.com> Subject: Re: SUMMARY: LISTGROUP patch for NNmaster/nntpd Date: Tue, 21 Apr 1992 19:06:33 +0000 From: davison@borland.com (Wayne Davison) References: <1992Apr21.132800.20751@donau.et.tudelft.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!usc!sol.ctr.columbia.edu!spool.mu.edu!umn.edu!csus.edu!borland.com!davison Newsgroups: news.software.nn,news.software.nntp Keywords: NN, NNmaster, LISTGROUP, nntpd, trn Article-I.D.: borland.1992Apr21.190633.28040 Organization: Borland International Lines: 32