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
+++ b/mercurial/manifest.py
@@ -38,10 +38,11 @@ class manifest(revlog):
 
     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)