##// END OF EJS Templates
perf: use `setup` function in `perfdirstatedirs`...
marmoute -
r43394:100e7e0c default
parent child Browse files
Show More
@@ -1128,13 +1128,15 b' def perfdirstatedirs(ui, repo, **opts):'
1128 """
1128 """
1129 opts = _byteskwargs(opts)
1129 opts = _byteskwargs(opts)
1130 timer, fm = gettimer(ui, opts)
1130 timer, fm = gettimer(ui, opts)
1131 b"a" in repo.dirstate
1131 repo.dirstate.hasdir(b"a")
1132
1133 def setup():
1134 del repo.dirstate._map._dirs
1132
1135
1133 def d():
1136 def d():
1134 repo.dirstate.hasdir(b"a")
1137 repo.dirstate.hasdir(b"a")
1135 del repo.dirstate._map._dirs
1138
1136
1139 timer(d, setup=setup)
1137 timer(d)
1138 fm.end()
1140 fm.end()
1139
1141
1140
1142
General Comments 0
You need to be logged in to leave comments. Login now