Article View: news.software.readers
Article #25585Re: NewsWatcher (MAC): how to kill multi-crossposts?
From: Bill Stewart-Cole
Date: Wed, 04 Sep 1996 00:00
Date: Wed, 04 Sep 1996 00:00
31 lines
1888 bytes
1888 bytes
In article <mmcirvin-0309961511240001@news.std.com>, mmcirvin@world.std.com (Matt McIrvin) wrote: >In article >Actually, it is usually faster to search the Xref: line instead, maybe >because it is right at the top of the header. The regexp to use is a >little different; in the Xref: line each newsgroup entry contains a colon. >So you would search for the regexp > >:.*:.*:.*:.*: It's a little faster because only cross-posts have Xref headers (matching against a null is REALLY fast) and with some servers because Xref is cached and so is a lot faster to retrieve. I also found it faster to tighten the regexp a little by using "[^:]*" instead of ".*" This prevents the matching code from trying to match the header 4 different ways when the first try really eliminates any hope. FWIW, Brian has sped up the flow of headers through the matching routines so much in the 2.2x and 2.3x series that all the speed variations between a loose Newsgroups search and a tight Xref search are now insignificant unless your server caches Xref. The 20% improvement is now less than a second on groups with hundreds of posts. -- Bill Stewart-Cole
Technical Details
Message-ID:
<bill-0409960015250001@news.inlink.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<carthur.at.independent.dot.co.dot.uk-0309961822300001@ak103.du.pipex.com> <mmcirvin-0309961511240001@news.std.com>Show Full Headers
Complete Article Headers
Message-ID: <bill-0409960015250001@news.inlink.com> Subject: Re: NewsWatcher (MAC): how to kill multi-crossposts? Date: Wed, 04 Sep 1996 00:00:00 +0000 From: bill@scconsult.com (Bill Stewart-Cole) References: <carthur.at.independent.dot.co.dot.uk-0309961822300001@ak103.du.pipex.com> <mmcirvin-0309961511240001@news.std.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 178366606 Content-type: text/plain; charset=ISO-8859-1 Organization: ZOG Mime-version: 1.0 Newsgroups: news.software.readers