[rfc] [patch] pycurl transport

Martin Pool mbp at sourcefrog.net
Wed Jan 11 04:09:35 GMT 2006


This patch adds a new http/https transport which uses the PyCurl
library.  <pycurl.sf.net>

This has a few advantages over the builtin urllib:

 - it will use keepalive connections where possible
 - it caches DNS entries
 - it sets 'cache: must-revalidate' which should be the right
   tradeoff between correctness and caching

The main disadvantage is that pycurl adds another dependency, and a
dependency on a C library and its Python binding.  Given that I don't
know if it should be the only option but perhaps it should be used if
PyCurl can be found?

For me this cut transfer times from the UK to Australia by about 50%.
There are probably bigger wins possible in other layers (e.g. Johan's
revfile) but this should be compatible with them.

Any thoughts?

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060111/24fbacc9/attachment.pgp 


More information about the bazaar mailing list