Article View: news.software.nntp
Article #30153Re: Speeding up INN's GROUP command (was: Re: Getting slrn to use LIST ACTIVE instead of GROUP?)
From: Grigori Vulis
Date: Wed, 29 Jul 1998 00:00
Date: Wed, 29 Jul 1998 00:00
26 lines
2284 bytes
2284 bytes
Jeremy <jeremy@exit109.com> wrote: > Curt Welch <curt@kcwc.com> wrote: > > I'm pretty sure that the old inn nnrpd will do that and remember the > > list of valid articles. Then, when you do an XOVER, it matches that > > list against the XOVER data and removes the XOVER records (from the > > response) for missing articles. I'd guess that it also uses that list > > for stepping though the articles with NEXT and LAST etc. So if you > > don't read the directory and build that list, you will either have to > > do it later, or you will just loose the accuracy of knowing which > > articles are really there and which aren't. > > Yeah, that's what it'll break, I didn't think of that. Strike a compromise, then. When the GROUP command is executed, just display the numbers from active and don't count articles yet. Put false in little boolean flag that marks the group count as unreliable. Now, put a bit of code at the beginning of each command that depends on that group count that performs the dir scan and sets the flag to true, if the flag isn't already set true. This ought to make newsreader refreshes wicked fast, and you'll only incur the scan overhead if the user actually goes in and looks at the froup.
Technical Details
Message-ID:
<6pmtfg$ded@news1.newsguy.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!not-for-mailReferences:
<slrn6r3vn3.7tk.gjohnson@dream.season.com> <slrn6ri2kp.8pi.syl@elvira.rodents.montreal.qc.ca> <6pdgab$494$1@supernews.com> <slrn6rmfnv.m1r.syl@elvira.rodents.montreal.qc.ca> <6pkd3q$kv5$1@supernews.com> <6pl6ml$9p3$1@news1.exit109.com> <m3lnpdsg79.fsf@windlord.Stanford.EDU> <6pm0fi$3a7$1@news1.exit109.com> <m3af5tpevc.fsf@windlord.Stanford.EDU> <6pm2tv$4q0$3@news1.exit109.com> <19980729011813.699$AS@newsreader.com> <6pmhd0$ggr$1@news1.exit109.com>Show Full Headers
Complete Article Headers
Message-ID: <6pmtfg$ded@news1.newsguy.com> Subject: Re: Speeding up INN's GROUP command (was: Re: Getting slrn to use LIST ACTIVE instead of GROUP?) Date: Wed, 29 Jul 1998 00:00:00 +0000 From: gerglery@usa.net (Grigori Vulis) References: <slrn6r3vn3.7tk.gjohnson@dream.season.com> <slrn6ri2kp.8pi.syl@elvira.rodents.montreal.qc.ca> <6pdgab$494$1@supernews.com> <slrn6rmfnv.m1r.syl@elvira.rodents.montreal.qc.ca> <6pkd3q$kv5$1@supernews.com> <6pl6ml$9p3$1@news1.exit109.com> <m3lnpdsg79.fsf@windlord.Stanford.EDU> <6pm0fi$3a7$1@news1.exit109.com> <m3af5tpevc.fsf@windlord.Stanford.EDU> <6pm2tv$4q0$3@news1.exit109.com> <19980729011813.699$AS@newsreader.com> <6pmhd0$ggr$1@news1.exit109.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!not-for-mail X-Deja-AN: 375962849 Organization: International Brotherhood of Vulii Newsgroups: news.software.nntp