[Pkg-bazaar-commits] ./bzr/unstable r948: - more buffering when reading/writing hashcache
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:21:32 UTC 2009
------------------------------------------------------------
revno: 948
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-07-20 14:30:51 -0300
message:
- more buffering when reading/writing hashcache
modified:
bzrlib/hashcache.py
-------------- next part --------------
=== modified file 'bzrlib/hashcache.py'
--- a/bzrlib/hashcache.py 2005-07-11 03:12:11 +0000
+++ b/bzrlib/hashcache.py 2005-07-20 17:30:51 +0000
@@ -139,7 +139,7 @@
return cache_sha1
else:
self.miss_count += 1
- digest = sha_file(file(abspath, 'rb'))
+ digest = sha_file(file(abspath, 'rb', buffering=65000))
now = int(time.time())
if fp[1] >= now or fp[2] >= now:
@@ -200,7 +200,7 @@
fn = self.cache_file_name()
try:
- inf = file(fn, 'rb')
+ inf = file(fn, 'rb', buffering=65000)
except IOError, e:
mutter("failed to open %s: %s" % (fn, e))
return
More information about the Pkg-bazaar-commits
mailing list