Optimizing sockets to 1000 requests/sec? (Was: Sockets and messaging services)
Paul Rubin
phr-n2001d at nightsong.com
Thu Nov 15 09:29:39 EST 2001
Duncan Grisby <dgrisby at uk.research.att.com> writes:
> >If it's on the local machine, why mess with TCP at all, instead of using
> >AF_UNIX? I'm not sure whether the OP intended to run locally tough.
>
> Indeed, using Unix sockets makes it 20% to 25% faster than the TCP
> loopback. Somewhere along the line I got the impression we were
> talking about TCP, though.
Another idea, how about using preforking (like Apache) instead of
threading or asyncore?
More information about the Python-list
mailing list