STINNER Victor <vstin...@redhat.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue29312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to