Accelerating push via bzr:// and friends
Robert Collins
robertc at robertcollins.net
Tue May 20 11:10:04 BST 2008
On Tue, 2008-05-20 at 19:47 +1000, Andrew Bennetts wrote:
>
>
> Here's a couple of things I'm doing right now, because I know other
> some other
> people are looking at similar areas and it would be good to avoid
> duplicating
> our efforts:
>
> - buffering in _ProtocolThreeEncoder. For some reason setting
> TCP_NODELAY
> isn't enough to avoid waiting for ACKs when doing lots of small
> writes. So
> I'll make it buffer so that it does exactly one send() call for
> most packets
> (unless they have a streamed body).
NODELAY stops the kernel buffering, so you get lots of packets on the
wire; otoh it means when we are being chatty we don't have to wait.
Perhaps we don't want NODELAY?
> - investigating why get_parent_map is regularly being called after
> the main
> work is done, and stop doing it.
Its probably generating branch history.
> Initial tests suggest that bzr.dev has regressed a bit since 1.4! But
> fixing
> those two issues (especially the first) should put us ahead.
Cool.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080520/2402cbea/attachment-0001.pgp
More information about the bazaar
mailing list