1.6 fetch regression

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Aug 28 10:21:48 BST 2008


>>>>> "john" == John Arbash Meinel <john at arbash-meinel.com> writes:

<snip/>

    >>> (note that this repo is slightly different, but still a packed repo) I'm
    >>> actually quite surprised to see that bzr-1.5 branching over http:// is
    >>> *faster* than branching locally. (1m versus 1m15s).
    >> 
    >> async behaviour in pycurl, I'd guess.
    >> 
    >> -Rob

    john> I'm using urllib.

Try with pycurl then :D

Seriously, I don't know how you consolidate your numbers, but if
you can redo that for pycurl and find a significant difference
then it may be related to internal buffering being done
differently in urllib.

I'm quite surprised that http is coming out being faster than
alternatives when there is no good reason for it.

The only thing that comes to mind then is that urllib try very
hard to avoid buffering readv, i.e. callers of readv reads data
from the underlying socket as much as possible.

This is not the case for pycurl. So my suggestion is that you
redo your measures with pycurl and if the same kind of difference
appears you may have a new track to follow.

Hth,

        Vincent



More information about the bazaar mailing list