[PATCH] V13 of experiment for a simpler path encoding for hashed paths (for "fncache2")

Adrian Buehlmann adrian at cadifra.com
Sat Sep 29 07:34:20 CDT 2012


On 2012-09-29 11:29, Adrian Buehlmann wrote:
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1348910761 -7200
> # Node ID ca5bca5255271ae28320c4d107b11ba5c9dab1de
> # Parent  d6c7128e550de7d74aec27e86532ceec75a5c38f
> V13 of experiment for a simpler path encoding for hashed paths (for "fncache2")

I was a bit curious and looked at the assembly code created by the MS C compiler.

I used this temporary hack:

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -422,7 +422,8 @@
     Extension('mercurial.diffhelpers', ['mercurial/diffhelpers.c']),
     Extension('mercurial.mpatch', ['mercurial/mpatch.c']),
     Extension('mercurial.parsers', ['mercurial/parsers.c',
-                                    'mercurial/pathencode.c']),
+                                    'mercurial/pathencode.c'],
+                                   extra_compile_args=["/FAs"]),
     ]
 
 osutil_ldflags = []


I pasted the (hopefully) relevant part here:
http://pastebin.com/Pjr4N9h3


More information about the Mercurial-devel mailing list