🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #40196

Re: Diablo vs. INN questions...

#40196
From: Russ Allbery
Date: Tue, 28 Sep 1999 00:00
46 lines
2605 bytes
Joe Greco <jgreco@ns.sol.net> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> 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.

You can use either Perl or Python, you could use Tcl if you felt like
fixing the bit rot in that code but no one working on INN seems to care
about Tcl any more, and it would actually be reasonably easy to add a C
filtering interface on platforms that support dlopen().  Hm.

>> 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.

You missed the inference between my sentences.  The filter in INN is
faster than the filter in Diablo because it's embedded.  You could embed
the filter in Diablo as well and get the same speed, but you'd lose global
history.

> 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.

So can I.  It's downright trivial to add code to innd/perl.c to create
another XS callback, and I intend to lift the slowest parts of my filter
to C for speed.

> I'd much rather see a common filter API devised.

Sorry, not interested unless it's embedded.  Anything that isn't embedded
is too slow.

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

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

Show Full Headers
Complete Article Headers
Message-ID: <yl1zbjqf99.fsf@windlord.stanford.edu>
Subject: Re: Diablo vs. INN questions...
Date: Tue, 28 Sep 1999 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <brad-2709991944100001@brad.techos.skynet.be> <yl4sggteag.fsf@windlord.stanford.edu> <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
X-Deja-AN: 530310495
Organization: The Eyrie
Newsgroups: news.software.nntp