perf: restore lazyindex hack
authorMatt Mackall <mpm@selenic.com>
Tue, 18 Jan 2011 15:55:49 -0600
changeset 13277 9f707b297b0f
parent 13276 ba6a63339f7c
child 13283 a3e834a9e9c4
perf: restore lazyindex hack This hack (and the module it lives in) exist so that performance can be compared across different hg versions.
contrib/perf.py
--- a/contrib/perf.py	Tue Jan 18 15:55:48 2011 -0600
+++ b/contrib/perf.py	Tue Jan 18 15:55:49 2011 -0600
@@ -81,6 +81,7 @@
 
 def perfindex(ui, repo):
     import mercurial.revlog
+    mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg
     n = repo["tip"].node()
     def d():
         repo.invalidate()