Mercurial > public > mercurial-scm > hg
diff contrib/perf.py @ 34677:014bd2a555c8
dirstate: remove _dirs property cache
Now that dirs is source of truthed on the dirstatemap, let's get rid of the
_dirs propertycache on the dirstate.
Differential Revision: https://phab.mercurial-scm.org/D982
author | Durham Goode <durham@fb.com> |
---|---|
date | Thu, 05 Oct 2017 11:34:41 -0700 |
parents | bfddc3d678ae |
children | e8a89ed7ce96 |
line wrap: on
line diff
--- a/contrib/perf.py Thu Oct 05 11:34:41 2017 -0700 +++ b/contrib/perf.py Thu Oct 05 11:34:41 2017 -0700 @@ -519,7 +519,7 @@ 'a' in dirstate def d(): dirstate.dirs() - del dirstate._dirs + del dirstate._map.dirs timer(d) fm.end() @@ -538,8 +538,8 @@ timer, fm = gettimer(ui, opts) "a" in repo.dirstate def d(): - "a" in repo.dirstate._dirs - del repo.dirstate._dirs + "a" in repo.dirstate._map.dirs + del repo.dirstate._map.dirs timer(d) fm.end() @@ -562,7 +562,7 @@ def d(): dirstate._dirfoldmap.get('a') del dirstate._dirfoldmap - del dirstate._dirs + del dirstate._map.dirs timer(d) fm.end()