urllib2 vs urlgrabber

Martin Pool mbp at sourcefrog.net
Wed May 11 02:00:11 BST 2005


On  9 May 2005, Wilk <wilk-ml at flibuste.net> wrote:
> 
> I tested remote log with urllib2 and urlgrabber (by setting
> ENABLE_URLGRABBER), for me it's a lot faster.
> 
> time bzr log http://bazaar-ng.org/bzr/bzr.dev/
> 
> urllib2
> 
> real    1m22.654s
> user    0m0.900s
> sys     0m0.100s
> 
> urlgrabber
> 
> real    0m45.481s
> user    0m1.110s
> sys     0m0.100s
> 
> I'm surprise to compare with rsync :
> 
> time rsync -a bazaar-ng.org::bazaar-ng/bzr/bzr.dev/.bzr/inventory-store .
> 
> real    0m52.366s
> user    0m0.040s
> sys     0m0.060s

That's not quite a fair comparison because bzr log is only fetching
the contents of revision-store, not inventory-store.

Given those numbers I think we should use urlgrabber in the same way
as elementtree: include it in the source distribution to reduce the
number of external dependencies.

-- 
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/20050511/4c5ce9f6/attachment.pgp 


More information about the bazaar mailing list