STINNER Victor added the comment:

INADA Naoki: "Since mutating kw dict shouldn't affect caller's dict, caller and 
callee can't share the dict."

Oh, I knew that, it's not the first time that I propose to implement this 
optimization and that I got this answer !? So I added a comment for myself, to 
remind me not to propose this optimization anymore :-D

I close this issue.


Serhiy Storchaka: "In most cases kw is empty or very small. I doubt any 
optimization can have significant effect."

I have no opinion on Naoki's optimization idea.

Naoki: Feel free to implement your idea to measure the speedup, but please open 
a new issue for that if you consider that it's worth it.

FYI Naoki and me started to list ideas to optimize CPython 3.7:
http://faster-cpython.readthedocs.io/cpython37.html

----------

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

Reply via email to