# HG changeset patch # User Benoit Boissinot # Date 1251938576 -7200 # 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 -r e0cc9fa2a576 -r eecbaac5ca88 mercurial/manifest.py --- a/mercurial/manifest.py Wed Sep 02 21:05:43 2009 +0200 +++ b/mercurial/manifest.py Thu Sep 03 02:42:56 2009 +0200 @@ -20,7 +20,7 @@ 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):