--- a/contrib/perf.py Thu Sep 13 17:00:56 2012 -0700
+++ b/contrib/perf.py Fri Sep 14 13:02:31 2012 +0200
@@ -195,6 +195,16 @@
s.fncache.write()
timer(d)
+def perffncacheencode(ui, repo):
+ from mercurial import store
+ s = store.store(set(['store','fncache','dotencode']),
+ repo.path, scmutil.opener)
+ s.fncache._load()
+ def d():
+ for p in s.fncache.entries:
+ s.encode(p)
+ timer(d)
+
def perfdiffwd(ui, repo):
"""Profile diff of working directory changes"""
options = {
@@ -226,6 +236,7 @@
'perfcca': (perfcca, []),
'perffncacheload': (perffncacheload, []),
'perffncachewrite': (perffncachewrite, []),
+ 'perffncacheencode': (perffncacheencode, []),
'perflookup': (perflookup, []),
'perfrevrange': (perfrevrange, []),
'perfnodelookup': (perfnodelookup, []),