# HG changeset patch # User Matt Mackall # Date 1294786874 21600 # Node ID 2696730ca233b8d9c8ad0e4168c6cd4154bd8f95 # Parent 5ef5eb1f3515dce6ac8b0b30fbf9540938e60a3e perf: make perfindex results useful on hg with lazyparser diff -r 5ef5eb1f3515 -r 2696730ca233 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]