[RFC][PATCH]Speed improvement on the http transport: add keepalive support
Goffredo Baroncelli
kreijack at alice.it
Thu Feb 16 21:56:07 GMT 2006
Hi all,
the enclosed patch adds the capability to make multiple request per connection on
the http transport. The patch includes the file keepalive.py from the
urlgrabber library in order to avoid another dependency issue.
Below a bench on my machine ( Duron 800Mhz, with *local dns* & *local http server* )
$ time bzr.dev/bzr branch http://kreijack.homelinux.net:8077/bazaar/bazaar-ng_stable_branch
Branched 1528 revision(s).
real 4m50.499s
user 2m14.577s
sys 0m27.440s
$ time multiple-http-request/bzr branch http://kreijack.homelinux.net:8077/bazaar/bazaar-ng_stable_branch
Branched 1528 revision(s).
real 3m1.507s
user 1m32.812s
sys 0m14.980s
note the user time which with the patch decreases from 2m14 to 1m32.
The patch is posted for a review, comments are welcome.
Goffredo
store/__init__.py | 5
store/text.py | 1
store/weave.py | 11
transport/http.py | 52 +++-
transport/keepalive.py | 587 +++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 640 insertions(+), 16 deletions(-)
--
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack_ at _inwind.it>
Key fingerprint = CE3C 7E01 6782 30A3 5B87 87C0 BB86 505C 6B2A CFF9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http-multiple-request.diff
Type: text/x-diff
Size: 25639 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060216/d6ea38ad/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060216/d6ea38ad/attachment.pgp
More information about the bazaar
mailing list