--- C:/tools/bzr-2.6b2o/bzrlib/transport/__init__.py 2012-07-10 11:37:32.000000000 +0200 +++ C:/tools/bzr-2.6b2/bzrlib/transport/__init__.py 2013-03-21 14:22:50.795286000 +0100 @@ -320,7 +320,7 @@ # TODO: jam 20060714 Do some real benchmarking to figure out # where the biggest benefit between combining reads and # and seeking is. Consider a runtime auto-tune. - _bytes_to_read_before_seek = 0 + _bytes_to_read_before_seek = 100000000 hooks = TransportHooks() @@ -715,7 +715,11 @@ # we are already at the right location. This should be # benchmarked. fp.seek(c_offset.start) - data = fp.read(c_offset.length) + max_read = 10000000 # 10MB + data = "" + while len(data) < c_offset.length: + data += fp.read(min(max_read, c_offset.length - len(data))) + # data = fp.read(c_offset.length) if len(data) < c_offset.length: raise errors.ShortReadvError(relpath, c_offset.start, c_offset.length, actual=len(data))