[MERGE] Use a dict to access stat cache information from dirstate.

Robert Collins robertc at robertcollins.net
Wed Oct 24 01:34:38 BST 2007


This changes the stat lookup in dirstates to build a dict once and then
answer from it; this is noticeably faster.

With this I improve commit (on mozilla, my test tree):

Initial commit:
real    1m30.277s  1m29.089s
user    1m22.405s  1m19.909s
sys     0m4.648s   0m4.712s

Incremental commit 5 new files:
real    0m25.044s  0m17.150s
user    0m17.357s  0m15.293s
sys     0m1.284s   0m1.228s

Selected file commit 1 changed file:
real    0m11.646s  0m11.210s
user    0m10.825s  0m10.541s
sys     0m0.632s   0m0.624s

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-mail-8coUqE.patch
Type: text/x-patch
Size: 6037 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071024/25e0c51b/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071024/25e0c51b/attachment.pgp 


More information about the bazaar mailing list