Show More
@@ -180,15 +180,13 def perfcca(ui, repo): | |||||
180 | timer(lambda: scmutil.casecollisionauditor(ui, False, repo.dirstate)) |
|
180 | timer(lambda: scmutil.casecollisionauditor(ui, False, repo.dirstate)) | |
181 |
|
181 | |||
182 | def perffncacheload(ui, repo): |
|
182 | def perffncacheload(ui, repo): | |
183 | from mercurial import scmutil, store |
|
183 | s = repo.store | |
184 | s = store.store(set(['store','fncache']), repo.path, scmutil.opener) |
|
|||
185 | def d(): |
|
184 | def d(): | |
186 | s.fncache._load() |
|
185 | s.fncache._load() | |
187 | timer(d) |
|
186 | timer(d) | |
188 |
|
187 | |||
189 | def perffncachewrite(ui, repo): |
|
188 | def perffncachewrite(ui, repo): | |
190 | from mercurial import scmutil, store |
|
189 | s = repo.store | |
191 | s = store.store(set(['store','fncache']), repo.path, scmutil.opener) |
|
|||
192 | s.fncache._load() |
|
190 | s.fncache._load() | |
193 | def d(): |
|
191 | def d(): | |
194 | s.fncache._dirty = True |
|
192 | s.fncache._dirty = True | |
@@ -196,9 +194,7 def perffncachewrite(ui, repo): | |||||
196 | timer(d) |
|
194 | timer(d) | |
197 |
|
195 | |||
198 | def perffncacheencode(ui, repo): |
|
196 | def perffncacheencode(ui, repo): | |
199 | from mercurial import store |
|
197 | s = repo.store | |
200 | s = store.store(set(['store','fncache','dotencode']), |
|
|||
201 | repo.path, scmutil.opener) |
|
|||
202 | s.fncache._load() |
|
198 | s.fncache._load() | |
203 | def d(): |
|
199 | def d(): | |
204 | for p in s.fncache.entries: |
|
200 | for p in s.fncache.entries: |
General Comments 0
You need to be logged in to leave comments.
Login now