Show More
@@ -243,6 +243,18 b' def perflog(ui, repo, **opts):' | |||
|
243 | 243 | copies=opts.get('rename'))) |
|
244 | 244 | ui.popbuffer() |
|
245 | 245 | |
|
246 | @command('perfmoonwalk') | |
|
247 | def perfmoonwalk(ui, repo): | |
|
248 | """benchmark walking the changelog backwards | |
|
249 | ||
|
250 | This also loads the changelog data for each revision in the changelog. | |
|
251 | """ | |
|
252 | def moonwalk(): | |
|
253 | for i in xrange(len(repo), -1, -1): | |
|
254 | ctx = repo[i] | |
|
255 | ctx.branch() # read changelog data (in addition to the index) | |
|
256 | timer(moonwalk) | |
|
257 | ||
|
246 | 258 | @command('perftemplating') |
|
247 | 259 | def perftemplating(ui, repo): |
|
248 | 260 | ui.pushbuffer() |
General Comments 0
You need to be logged in to leave comments.
Login now