On Tue, 8 Jul 2008, David Nicol wrote:
On Tue, Jul 8, 2008 at 4:33 PM, Matt Sergeant <[EMAIL PROTECTED]> wrote:
But do note what I've said here previously: async is for high CONCURRENCY
not necessarily performance. Up to a certain level of concurrency prefork is
faster.
with SMTP one cares about throughput more than response time, and
properly implemented async will always provide better throughput than
an equivalent forking system on the same hardware simply because the
OS doesn't have to bother with as many context switches. (lots of
wiggle room in "properly.")
It's true, but there seems to be an annoying inefficiency in -async
somewhere compared to the "simplicity" of prefork - I'm fairly sure it's
to do with reading lines from the buffer - perl just isn't very good at
that sort of thing (whereas with C you can just move a pointer along, Perl
doesn't do that very well). I suppose I could probably do a bit more
benchmarking to improve it at some point.
Matt.