Article View: news.software.nntp
Article #35713Re: Rejecting late cancels
From: Russ Allbery
Date: Mon, 01 Mar 1999 00:00
Date: Mon, 01 Mar 1999 00:00
33 lines
2369 bytes
2369 bytes
Laurent Wacrenier <lwa@easynet.fr> writes: > Russ Allbery <rra@stanford.edu> wrote: >> If I reject an article with my Perl filters, I also want to reject the >> cancel for that same article. It's a lot faster to just add the cancel >> message ID to history and let INN handle refusing it for me than it is >> to add a Perl hook that's called for every incoming message ID. > Cleanfeed has another way to do this. It can keep a cache of rejected > articles (on hour by default) and is able to refuse cancel of this > articles. It should be faster (the test is done before innd MID check > and it doesn't touch the history�) but not so efficient... I'm a bit confused as to how you're using the term "efficient" here... I suppose you're referring to memory usage for the one-hour cache of cancelled articles? I'm not too worried about that. (One can tell that I'm not particularly worried about memory given that I'm not running tagged hash. :) innd's only 96MB. I should see how big expire is, but I don't think it's that large.) INN has to check the article against the history database anyway, so it's faster to reject based on a history entry than it is to reject based on a Perl filter. I'm currently rejecting about 30,000 cancels per day with the article cache, and I'm being offered about 600K. Every time the Perl message ID filtering hook is called, it has to Perlify the message ID string and then call the Perl sub, which has to parse the message ID and check the cache. So I guess my question is whether people think doing that 600K times will be faster than calling INN::addhist() 30K times. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<yl4so46cjw.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-mailReferences:
<ylemn9i23j.fsf@windlord.stanford.edu> <7behkk$qc3$1@buggy.easynet.fr> <ylww11glxv.fsf@windlord.stanford.edu> <7beq3j$v2i$1@buggy.easynet.fr>Show Full Headers
Complete Article Headers
Message-ID: <yl4so46cjw.fsf@windlord.stanford.edu> Subject: Re: Rejecting late cancels Date: Mon, 01 Mar 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <ylemn9i23j.fsf@windlord.stanford.edu> <7behkk$qc3$1@buggy.easynet.fr> <ylww11glxv.fsf@windlord.stanford.edu> <7beq3j$v2i$1@buggy.easynet.fr> 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: 450142701 Organization: The Eyrie Newsgroups: news.software.nntp