tcpsocket.c: disable Nagle's algorithm for sent commands
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 9 Jan 2013 14:13:38 +0000 (17:13 +0300)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 9 Jan 2013 15:48:48 +0000 (10:48 -0500)
commit5c876f67cf9e0bf544d0d0ad0b09b54decaac6d1
tree52ce635b7fc54e82e8e33f10866dd147630c9aa9
parent4df90a643b87eaebee5141906d9b6d6335e58e2e
tcpsocket.c: disable Nagle's algorithm for sent commands

Sent commands are very short, like "cvs co foo", "cvs co bar".
We pair them with large receive commands.
The faster we will send them out the faster we will receive
the result. Nagle's algorithm does not allow sending
requests faster, than 5 checkouts per second.

The patch speedups importing my real repository
(30 000 checkouts) from 90 minutes down to 5 minutes.

It means patch speedups from 5 checkouts to
100 checkouts per second.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
tcpsocket.c