changeset 13277:9f707b297b0f

perf: restore lazyindex hack This hack (and the module it lives in) exist so that performance can be compared across different hg versions.
author Matt Mackall <mpm@selenic.com>
date Tue, 18 Jan 2011 15:55:49 -0600
parents ba6a63339f7c
children a3e834a9e9c4
files contrib/perf.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()