Message347286
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. |
|
Date |
User |
Action |
Args |
2019-07-04 16:13:14 | vstinner | set | recipients:
+ vstinner, rhettinger, larry, methane, python-dev, jdemeyer |
2019-07-04 16:13:14 | vstinner | set | messageid: <1562256794.53.0.453055616034.issue29312@roundup.psfhosted.org> |
2019-07-04 16:13:14 | vstinner | link | issue29312 messages |
2019-07-04 16:13:13 | vstinner | create | |
|