revlog: increase readahead size
authorMatt Mackall <mpm@selenic.com>
Fri, 13 Apr 2012 21:35:48 -0500
changeset 16418 e5750c6716eb
parent 16417 b4b0c6931e11
child 16419 784606ae0029
revlog: increase readahead size
mercurial/revlog.py
--- a/mercurial/revlog.py	Fri Apr 13 15:32:49 2012 -0500
+++ b/mercurial/revlog.py	Fri Apr 13 21:35:48 2012 -0500
@@ -812,7 +812,7 @@
         else:
             df = self.opener(self.datafile)
 
-        readahead = max(65536, length)
+        readahead = max(_chunksize, length)
         df.seek(offset)
         d = df.read(readahead)
         df.close()