##// END OF EJS Templates
perf: use `setup` function in `perfdirfoldmap`...
marmoute -
r43398:ad801d4a default
parent child Browse files
Show More
@@ -1170,14 +1170,16 b' def perfdirfoldmap(ui, repo, **opts):'
1170 opts = _byteskwargs(opts)
1170 opts = _byteskwargs(opts)
1171 timer, fm = gettimer(ui, opts)
1171 timer, fm = gettimer(ui, opts)
1172 dirstate = repo.dirstate
1172 dirstate = repo.dirstate
1173 b'a' in dirstate
1173 dirstate._map.dirfoldmap.get(b'a')
1174
1175 def setup():
1176 del dirstate._map.dirfoldmap
1177 del dirstate._map._dirs
1174
1178
1175 def d():
1179 def d():
1176 dirstate._map.dirfoldmap.get(b'a')
1180 dirstate._map.dirfoldmap.get(b'a')
1177 del dirstate._map.dirfoldmap
1181
1178 del dirstate._map._dirs
1182 timer(d, setup=setup)
1179
1180 timer(d)
1181 fm.end()
1183 fm.end()
1182
1184
1183
1185
General Comments 0
You need to be logged in to leave comments. Login now