# HG changeset patch # User Benoit Boissinot # Date 2009-09-03 00:42:56 # Node ID eecbaac5ca881c9c98c781243841bcc4d5648d65 # Parent e0cc9fa2a57633af9596da3647a5d0f9f5e70f7c manifestdict: remove unnecessary dictionary copy No need to copy the dict, dict.__init__() will do that for us. It was responsible for a non-negligeable waste of time during a qpush of an -mm queue on the kernel repo. diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -20,7 +20,7 @@ class manifestdict(dict): def set(self, f, flags): self._flags[f] = flags def copy(self): - return manifestdict(dict.copy(self), dict.copy(self._flags)) + return manifestdict(self, dict.copy(self._flags)) class manifest(revlog.revlog): def __init__(self, opener):