changeset 43124 | 100e7e0cdaad |
parent 43123 | 69301b79fd36 |
child 43125 | 56494a2bfe2f |
--- a/contrib/perf.py Tue Oct 08 01:47:35 2019 -0400 +++ b/contrib/perf.py Tue Oct 08 02:08:41 2019 -0400 @@ -1128,13 +1128,15 @@ """ opts = _byteskwargs(opts) timer, fm = gettimer(ui, opts) - b"a" in repo.dirstate + repo.dirstate.hasdir(b"a") + + def setup(): + del repo.dirstate._map._dirs def d(): repo.dirstate.hasdir(b"a") - del repo.dirstate._map._dirs - - timer(d) + + timer(d, setup=setup) fm.end()