contrib/perf.py
changeset 22780 d8ff1f671aed
parent 20846 b581c5827516
child 23171 8afae1d5d108
equal deleted inserted replaced
22779:d9585dda63c3 22780:d8ff1f671aed
   135 def perfdirstatedirs(ui, repo):
   135 def perfdirstatedirs(ui, repo):
   136     "a" in repo.dirstate
   136     "a" in repo.dirstate
   137     def d():
   137     def d():
   138         "a" in repo.dirstate._dirs
   138         "a" in repo.dirstate._dirs
   139         del repo.dirstate._dirs
   139         del repo.dirstate._dirs
       
   140     timer(d)
       
   141 
       
   142 @command('perfdirstatefoldmap')
       
   143 def perffoldmap(ui, repo):
       
   144     dirstate = repo.dirstate
       
   145     'a' in dirstate
       
   146     def d():
       
   147         dirstate._foldmap.get('a')
       
   148         del dirstate._foldmap
       
   149         del dirstate._dirs
   140     timer(d)
   150     timer(d)
   141 
   151 
   142 @command('perfdirstatewrite')
   152 @command('perfdirstatewrite')
   143 def perfdirstatewrite(ui, repo):
   153 def perfdirstatewrite(ui, repo):
   144     ds = repo.dirstate
   154     ds = repo.dirstate