perf: make perfindex results useful on hg with lazyparser
authorMatt Mackall <mpm@selenic.com>
Tue, 11 Jan 2011 17:01:14 -0600
changeset 13255 2696730ca233
parent 13254 5ef5eb1f3515
child 13256 996b95985c2f
perf: make perfindex results useful on hg with lazyparser
contrib/perf.py
--- a/contrib/perf.py	Tue Jan 11 17:01:04 2011 -0600
+++ b/contrib/perf.py	Tue Jan 11 17:01:14 2011 -0600
@@ -80,7 +80,8 @@
     timer(d)
 
 def perfindex(ui, repo):
-    import mercurial.changelog
+    import mercurial.revlog
+    mercurial.revlog._prereadsize = 2**24 # disable old lazy parser
     n = repo["tip"].node()
     def d():
         repo[n]