🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #40205

Re: Diablo vs. INN questions...

#40205
From: Joe Greco
Date: Tue, 28 Sep 1999 00:00
38 lines
2712 bytes
In news.software.nntp article <yl4sggteag.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote:
:Brad Knowles <brad@shub-internet.org> writes:
:> 2.  When executing the perl filter, a copy of the program is always kept
:> running (a la apache w/ mod_perl), and a pointer to the article (stored
:> in shared memory) is passed.
:
:Under INN, the Perl filter isn't a process.  It's embedded directly inside
:innd; innd links with the Perl libraries. 

Which is what makes filtering under INN a perfect bitch; you have to use
Perl.  Some of us prefer to code filters in C, or shell, or whatever.  Some
of us still do not speak Perl.

:This is the reason why the Perl
:filter is so much faster in innd than in the external process
:implementation of Diablo and Cyclone.  Because innd is a monolithic
:process, unlike Diablo's forking model, you can do that and still maintain
:history across all incoming articles.

Apples and oranges have nothing to do with each other.  The Perl filter is
so much faster simply because it doesn't have to do quite as much putzing
around with copying the article around.  I can build a two-process filter
system that takes your embedded Perl filter and beats the pulp out of it,
performancewise, simply because I can program in a compiled language.  Using
shared memory helps.  Some.  But only really with big articles.  Been there,
done that.

I'd much rather see a common filter API devised.  The Cyclone paradigm,
which I grabbed for Diablo, is very simplistic and elegant at the same time,
but I'd agree that it could benefit from shared memory.  I don't personally
think that writing INN-specific hacks to filters is a real good way to
encourage diversity in the NNTP server world, and would much prefer to see
the effort spent on devising a unified filter model that'll work with INN,
Cyclone, Diablo, and NNTPRelay - at a minimum.

... JG

Technical Details
Message-ID: <37f0580c$0$7749@news.execpc.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
References: <brad-2709991944100001@brad.techos.skynet.be> <yl4sggteag.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <37f0580c$0$7749@news.execpc.com>
Subject: Re: Diablo vs. INN questions...
Date: Tue, 28 Sep 1999 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <brad-2709991944100001@brad.techos.skynet.be> <yl4sggteag.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
X-Deja-AN: 530181844
Sender: jgreco@earth.execpc.com
X-Trace: S=T[4Gb?NP1I5[332>a9Y;bfNiaEHUgJ7RYcgIRLSUE=5mQ\VaD;MZ?hj\Bmgkbim421Vkhja9226l=jlCRBl;334dTgmFn@Sh7
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com