Author vstinner
Recipients jdemeyer, larry, methane, python-dev, rhettinger, vstinner
Date 2019-07-04.16:13:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562256794.53.0.453055616034.issue29312@roundup.psfhosted.org>
In-reply-to
Content
Changing dict.update() calling convention may save a few nanoseconds on d1.update(d2) call, but it will make d1.update(**d2) way slower with a complexity of O(n): d2 must be converted to 2 lists (kwnames and args) and then a new dict should be created.

I don't see the point of micro-optimizing d1.update(d2), if d1.update(**d2) would become way slower.
History
Date User Action Args
2019-07-04 16:13:14vstinnersetrecipients: + vstinner, rhettinger, larry, methane, python-dev, jdemeyer
2019-07-04 16:13:14vstinnersetmessageid: <1562256794.53.0.453055616034.issue29312@roundup.psfhosted.org>
2019-07-04 16:13:14vstinnerlinkissue29312 messages
2019-07-04 16:13:13vstinnercreate