lib/tsocket: add a fast path to tsocket_sendto_send/recv()
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Mar 2009 16:11:22 +0000 (17:11 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 19 Mar 2009 15:25:57 +0000 (16:25 +0100)
commitb900e9242512e35f7f805ba4f4ce1624c2677d8b
tree43dd203905019e01a230adf30a69ccf784f378e7
parent235a7a420b72068403d38b47b123faf4481bef08
lib/tsocket: add a fast path to tsocket_sendto_send/recv()

By first trying to send data without waiting for the socket
to become writeable we gain about 10-20% performance in the
LDAP-BENCH-CLDAP test.

metze
lib/tsocket/tsocket_sendto.c