Pete Henshall wrote:
Hi [EMAIL PROTECTED],
(Not intending to upset anyone...) :)
I was just wondering why qmail-scanner is written in perl? It is a damn
cool program that does exactly what I need it to, but it seems that on other
lists everyones problem with it is that is forks a whole new perl each time
a message comes in.... Now I am ingorant when it comes to these sort of
things so this really is just a weekend idle ramble to myself.... but
wouldn't a persistant qmail-scannerd process written in C running all the
time with the connecting client being qmail-scanner-queue save alot of
cpu/ram/disk/whatever overhead? "connecting via a unix socket" or something
like that? ;) Maybe even just one whole new qmail-queue binary including
the real code that is created when you ./configure ?
I wasn't involved in the original development of qmail-scanner, but I can
make a guess as to why it was done in perl (based on my own experience with
other products).
In my case, it's a matter of time. perl development generally goes much
faster than C or C++ development. There are no pointers to screw up or
buffers to overflow. If you're dealing with strings, the coding becomes
much simpler.
I'm working on a LARGE project right now in perl, and I have no intention
of leaving it in perl over the long run, but initial development in perl
allows me to work out some of the operational problems quickly without
constantly worrying about pointers and buffers and things like that. And
I don't have to worry about not malloc()ing enough memory!
I don't know if that's the reason qmail-scanner was written in perl, but
I probably would have written it in perl for that reason if I wrote it.
--
Bill Moran
Potential Technologies
http://www.potentialtech.com
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general