🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39999

Re: news spool area exported from NFS

#39999
From: Russ Allbery
Date: Mon, 20 Sep 1999 00:00
36 lines
2380 bytes
Brad Knowles <brad@shub-internet.org> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> Well, you're feeding 650 message IDs into your filter per second if
>> you're using message ID filtering, but that's a different case.  :)

> Would it really be useful to attempt to filter on message-ids within
> cleanfeed or somesuch?

Ask Jeremy; IIRC, he was doing it for the job-spew from headhunter.net and
said it was faster than rejecting a whole article and then doing history
lookups against the rejected message ID.  Remember, looking things up in
the history file often requires disk I/O whereas Perl filtering just
requires processor speed, and you often have way more processor than disk.

> It seems to me that the best way to filter on message-ids is to leave
> that code in the news server,

I don't want code in the news server to reject all message IDs from
headhunter.net.  (I don't particularly want the code in the server to
reject all message IDs starting with <cancel., but it's already there now
and I don't care enough to take it out.)

> Only once you get past that check should you then get down to filters
> within the Perl script, and although you certainly could filter on the
> message-id among many other things, this would typically be something
> that would be called perhaps twelve times a second and not 650 times a
> second.

INN intentionally calls the Perl filter before doing a history lookup
because the Perl filter was usually faster.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <yllna1etcm.fsf@windlord.stanford.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.mbox.zip!not-for-mail
References: <7rhmg7$gmh$1@coco.singnet.com.sg> <aDVE3.19285$N77.1445858@typ11.nn.bcandid.com> <37e504a1$0$11106@news.execpc.com> <brad-1909991815200001@dialup261.brussels2.skynet.be> <37e5631f$0$11115@news.execpc.com> <yl4sgqgv0h.fsf@windlord.stanford.edu> <brad-2009991249140001@brad.techos.skynet.be>

Show Full Headers
Complete Article Headers
Message-ID: <yllna1etcm.fsf@windlord.stanford.edu>
Subject: Re: news spool area exported from NFS
Date: Mon, 20 Sep 1999 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <7rhmg7$gmh$1@coco.singnet.com.sg> <aDVE3.19285$N77.1445858@typ11.nn.bcandid.com> <37e504a1$0$11106@news.execpc.com> <brad-1909991815200001@dialup261.brussels2.skynet.be> <37e5631f$0$11115@news.execpc.com> <yl4sgqgv0h.fsf@windlord.stanford.edu> <brad-2009991249140001@brad.techos.skynet.be>
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: 527393472
Organization: The Eyrie
Newsgroups: news.software.nntp