Ronan wrote:
> how much difference would it make if the spamd server was rewritten to
> use pcre. Obviously this wuold run x10 s of times faster than the
> current perl native implementation.
>
> I presume other people have considered this and decided against it for
> various reasons as I cant seem to find any reference to it on the web.
Dozens have posted to this list with the idea.
>
> Anyone have any input on this? 
There was someone else working on a similar concept, and actually had a
prototype version. Not sure how much it did.
> What would be the implications?
You'd probably have to re-port all the future changes made by the SA
devs.. I don't know how many of the SA devs have any proficiency in C.
> Should it just be a straight translation perl -> c , or are there
> other factors?
>
Well, everything is a "straight translation", however there's a lot of
code here to translate. You'll have to translate everything in the
spamassassin tarball's lib/ directory too.

Other factors to consider are where will you get equivalents for all the
support libraries and utilities that SA uses. There's a LOT more to
spamassassin than perl regexes.

Some libraries that SA uses to consider include:

Mail::SPF
Net::DNS
HTML::Parser
DBI
DB_File
MIME::Base64
Mail::SPF
IP::Country::Fast

You'd have to convert all of those or find pre-made C equivalents.



Reply via email to