Show More
@@ -157,15 +157,6 b' def perfnodelookup(ui, repo, rev):' | |||||
157 | import mercurial.revlog |
|
157 | import mercurial.revlog | |
158 | mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg |
|
158 | mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg | |
159 | n = repo[rev].node() |
|
159 | n = repo[rev].node() | |
160 | def d(): |
|
|||
161 | cl = mercurial.revlog.revlog(repo.sopener, "00changelog.i") |
|
|||
162 | cl.rev(n) |
|
|||
163 | timer(d) |
|
|||
164 |
|
||||
165 | def perfnodelookup(ui, repo, rev): |
|
|||
166 | import mercurial.revlog |
|
|||
167 | mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg |
|
|||
168 | n = repo[rev].node() |
|
|||
169 | cl = mercurial.revlog.revlog(repo.sopener, "00changelog.i") |
|
160 | cl = mercurial.revlog.revlog(repo.sopener, "00changelog.i") | |
170 | def d(): |
|
161 | def d(): | |
171 | cl.rev(n) |
|
162 | cl.rev(n) |
General Comments 0
You need to be logged in to leave comments.
Login now