[issue29312] Use FASTCALL in dict.update()
Jeroen Demeyer
report at bugs.python.org
Thu Jul 4 07:48:02 EDT 2019
Jeroen Demeyer <J.Demeyer at UGent.be> added the comment:
> How can we avoid unpacking dict in case of d1.update(**d2)?
The unpacking is only a problem if you insist on using PyDict_Merge(). It would be perfectly possible to implement dict merging from a tuple+vector instead of from a dict. In that case, there shouldn't be a performance penalty.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue29312>
_______________________________________
More information about the Python-bugs-list
mailing list