[PATCH 0 of 7 F2 series] fncache2 repo format

Adrian Buehlmann adrian at cadifra.com
Sat Oct 6 18:03:00 CDT 2012


On 2012-10-07 00:24, Adrian Buehlmann wrote:
> This series creates new fncache2 repos. Just for consideration. Not to be pushed.
> 
> I've used it to convert a Netbeans repo to the fncache2 format using clone --pull.
> It passes verify afterwards.
> 
> Somewhat surprisingly, the performance of the F2 series isn't really that great (yet):
> 
>   $ hg perffncacheencode
>   ! wall 0.849000 comb 0.842405 user 0.842405 sys 0.000000 (best of 12)
> 
> Compare that with the A2 series, which still uses the current fncache repo format:
> 
>   $ hg perffncacheencode
>   ! wall 0.488000 comb 0.483603 user 0.483603 sys 0.000000 (best of 21)

In addition to the bug in patch 6, perffncacheencode needs to be adapted
for fncache2:

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -197,7 +197,7 @@

 def perffncacheencode(ui, repo):
     from mercurial import store
-    s = store.store(set(['store','fncache','dotencode']),
+    s = store.store(set(['store','fncache2']),
                     repo.path, scmutil.opener)
     s.fncache._load()
     def d():


More information about the Mercurial-devel mailing list