[Mimedefang] Embedding Perl in Multiplexor -- good idea?

David F. Skoll dfs at roaringpenguin.com
Wed Oct 22 15:53:51 EDT 2003


Hi,

Currently, the multiplexor has a function called activateSlave which
(more-or-less) does a fork(), some fooling around with pipes, and
then an exec() of "perl mimedefang.pl"

Another option is to embed the Perl interpreter directly in the
multiplexor so all the initialization is done _once_.  Then
activateSlave() only needs to do the fork() and pipe-manipulation.

The downside is that if you change your filter, you have to kill and
restart the multiplexor, instead of just telling it to terminate and
restart slaves at its earliest convenience.

Good idea?  Pros?  Cons?  Will it make enough of a difference seeing as
we already amortize Perl startup costs over a few hundred messages?

--
David.



More information about the MIMEDefang mailing list