# HG changeset patch # User Matt Mackall # Date 2012-04-14 02:35:48 # Node ID e5750c6716eb775b296f921b63bb57a4422dd9c0 # Parent b4b0c6931e11cebae8755555033d7f664106c33d revlog: increase readahead size diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -812,7 +812,7 @@ class revlog(object): else: df = self.opener(self.datafile) - readahead = max(65536, length) + readahead = max(_chunksize, length) df.seek(offset) d = df.read(readahead) df.close()