clone performance of experimental new http client library.

Martin Geisler mg at aragost.com
Thu Oct 20 04:59:33 CDT 2011


"Dominik Psenner" <dpsenner at gmail.com> writes:

>> Does all this mean that it is likely the new library will perform no
>> worse than the old one in Mercurial 2? The point of the library was
>> to speed things up right?
>
> Comparing svn 1.6.15-neon and 1.7.0-neon (which implements HTTPv2)
> shows that the 1.7 version eliminated more than half of the needed
> http requests [1]. I guess there's still some speedup potential for
> mercurial.

You must be talking about something else? David is talking about using
the new HTTP client we have in Mercurial.

The big goal of that client is to let the client send a "Expect:
100-Continue" header to the server on HTTP push and the server can then
reply early to ask for authentication, if needed.

With the normal Python HTTP code, clients upload everything *twice* when
pushing over HTTP: the first upload is discarded because it is
unauthenticated.

> Cheers
>
> [1]
> https://ctf.open.collab.net/sf/wiki/do/viewPage/projects.csvn/wiki/HTTPv2
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel

-- 
Martin Geisler

aragost Trifork
Professional Mercurial support
http://mercurial.aragost.com/kick-start/


More information about the Mercurial-devel mailing list