changeset 16418:e5750c6716eb

revlog: increase readahead size
author Matt Mackall <mpm@selenic.com>
date Fri, 13 Apr 2012 21:35:48 -0500
parents b4b0c6931e11
children 784606ae0029
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()