Show More
@@ -46,7 +46,7 def perfstatus(ui, repo, *pats): | |||
|
46 | 46 | timer(lambda: sum(map(len, repo.status()))) |
|
47 | 47 | |
|
48 | 48 | def perfheads(ui, repo): |
|
49 | timer(lambda: len(repo.changelog.heads())) | |
|
49 | timer(lambda: len(repo.changelog.headrevs())) | |
|
50 | 50 | |
|
51 | 51 | def perftags(ui, repo): |
|
52 | 52 | import mercurial.changelog, mercurial.manifest |
@@ -84,8 +84,8 def perfindex(ui, repo): | |||
|
84 | 84 | mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg |
|
85 | 85 | n = repo["tip"].node() |
|
86 | 86 | def d(): |
|
87 | repo.invalidate() | |
|
88 |
|
|
|
87 | cl = mercurial.revlog.revlog(repo.sopener, "00changelog.i") | |
|
88 | cl.rev(n) | |
|
89 | 89 | timer(d) |
|
90 | 90 | |
|
91 | 91 | def perfstartup(ui, repo): |
General Comments 0
You need to be logged in to leave comments.
Login now