manifest: minor performance tweak
authorMatt Mackall <mpm@selenic.com>
Mon, 24 Sep 2007 12:42:25 -0500
changeset 5328 8d00788ca578
parent 5327 f46ab9cacd3c
child 5336 24de027551c1
manifest: minor performance tweak
mercurial/manifest.py
--- a/mercurial/manifest.py	Mon Sep 24 12:41:54 2007 -0500
+++ b/mercurial/manifest.py	Mon Sep 24 12:42:25 2007 -0500
@@ -38,10 +38,11 @@
 
     def parse(self, lines):
         mfdict = manifestdict()
+        fdict = mfdict._flags
         for l in lines.splitlines():
             f, n = l.split('\0')
             if len(n) > 40:
-                mfdict._flags[f] = n[40:]
+                fdict[f] = n[40:]
                 mfdict[f] = bin(n[:40])
             else:
                 mfdict[f] = bin(n)