changeset 13255:2696730ca233

perf: make perfindex results useful on hg with lazyparser
author Matt Mackall <mpm@selenic.com>
date Tue, 11 Jan 2011 17:01:14 -0600
parents 5ef5eb1f3515
children 996b95985c2f
files contrib/perf.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]