RFC: Incoming/outgoing discovery with fewer roundtrips / more bandwidth

Dirkjan Ochtman dirkjan at ochtman.nl
Tue Sep 29 01:59:47 CDT 2009


On Tue, Sep 29, 2009 at 08:53, Peter Arrenbrecht
<peter.arrenbrecht at gmail.com> wrote:
> Yes. I would send samples and other id lists as binary streams. Sadly,
> at least in my tests, they do not compress at all.

We've also kicked around ideas of making the protocol JSON-based
(maybe a subset of JSON to keep parsing on pre-2.6 Python easy). Maybe
that should factor in to the bandwidth concerns/decisions.

> On the other hand, we'll have to be able to talk to older servers
> anyway, so we're going to end up with both code paths anyway.

Still, we'd have to grow detection code for slow links, I don't think
that's ideal (and even for many of today's slow links, e.g. the UMTS
I'm on right now, latency is a much bigger problem than bandwidth).
Exposing it as a choice to users would be even worse.

Cheers,

Dirkjan


More information about the Mercurial-devel mailing list