[merge] LockDir: use put_file_non_atomic instead of append_file

John Arbash Meinel john at arbash-meinel.com
Sat Sep 9 01:17:22 BST 2006


The attached bundle just changes LockDir to use the new
'put_file_non_atomic()' since it saves an extra round trip with sftp.

When locking a remote directory, this saves a round trip for each lock.
So in the common case, this saves 2 round trips. (For me, this is 200+ms
when committing or pushing to Launchpad).

John
=:->

PS> I"m doing some analysis of a commit over sftp, to see where we are
spending our time. It is quite revealing, and I hope to finish it soon.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: lockdir_non_atomic.patch
Type: text/x-patch
Size: 1531 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060908/1d8c5c84/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060908/1d8c5c84/attachment.pgp 


More information about the bazaar mailing list